Questions tagged [ikvm]

IKVM.NET is a JVM written on the CLR, allowing you to execute Java code using the Microsoft CLR run-time or Mono.

IKVM is a implementation of using the . IKVM and its supporting libraries allow Java to be executed under .NET processes (Mono or Microsoft) and allow the compilation of Java byte code into .NET compliant files.

IKVM Implements the Java Virtual Machine and also the Java class libraries.

Project Homepage

286 questions
4
votes
1 answer

IKVM.NET and Lucene

I am using Lucene.Net but there are some interesting Java components for Lucene (especially analyzers) that haven't been ported to Lucene.NET yet so maybe IKVM is a better choice. Some research has shown that IKVM seems to work pretty well, but I…
maxxxx
  • 113
  • 1
  • 7
4
votes
1 answer

Is it possible to use Gephi compiled with IKVM in a website?

I'm currently trying to load and use the Gephi Toolkit from within a .Net 4 C# website. I have a version of the toolkit jar file compiled against the IKVM virtual machine, which works as expected from a command line application using the following…
Ed Broome
  • 75
  • 6
3
votes
1 answer

IKVM 7.0 - how to successfully create a DLL file from JAR

I have a problem creating a DLL file from a JAR file with IKVM (version: 7.0.4335.0). The JAR itself can be run if I open it with the command: ikvm -jar MyTest1.jar I can see the System.out.print("test") output in the console. However, converting…
Dominik
  • 1,703
  • 6
  • 26
  • 46
3
votes
2 answers

How to use a Java .dll in C# .NET Core 6?

Initial situation I've made a little test for my project today - The goal: Implement .jar files into a C# project as a .dll. My current .java / .jar file looks like the following. package ws; public class Adding { public int Add(int a, int b) …
Maik Hasler
  • 1,064
  • 6
  • 36
3
votes
0 answers

Error while compiling Java files into DLL assemblies

I have been trying to convert a Java class into DLL using IKVM. IKVM converts that easily without errors. But while running it in VS, it throws the following exceptions: System.TypeInitializationException: 'The type initializer for…
PaxDoc
  • 31
  • 3
3
votes
0 answers

Calling Java Code in C# using IKVM results in System.TypeInitializationException error

I am currently trying to call Java Code in C#. One possibility is IKVM, whereupon I looked at a tutorial for this tool. I have to say, and that's really curious: the tool seems to work in part. But now to my problem: So I took the following…
P_Gate
  • 141
  • 7
3
votes
2 answers

IKVM C# to Java Interop with Callback using IKVM

I've started using IKVM to translate Java libs into .NET CIL. I can successfully write a C# program that pulls in (inproc) a translated Java assembly as a reference and make calls to the translated Java code. My question is, is anyone familiar w/…
mj_
  • 6,297
  • 7
  • 40
  • 80
3
votes
1 answer

Logging java.sql.SQLException causes overflow

I am trying to log exceptions that come from IKVM.OpenJDK.Jdbc assembly. One exception that occurs is java.sql.SQLException (and subclasses). log4Net seems to trip up over this because java.sql.SQLException implements IEnumerable and the…
Jonny
  • 2,509
  • 23
  • 42
3
votes
1 answer

FormatterServices.GetUninitializedObject(type) UWP/NETCore equivalent

Is there an alternative way to create an "uninitialized" object in UWP (NETCore)? I'm trying to port a piece of code that uses object o = FormatterServices.GetUninitializedObject(type) And then uses ConstructorInfo.Invoke(o, params) to construct…
steve hannah
  • 4,586
  • 11
  • 18
3
votes
1 answer

UCanAccess, IKVM and C#

I'm trying to make UCanAccess work in C#. I'm working on MonoDevelop using Mono on Linux. I already converted the needed .jar files into .dll .NET files using IKVM, this way: ikvmc -target:library file.jar Then I referenced the converted .dll files…
wind39
  • 441
  • 4
  • 14
3
votes
1 answer

Gate Named Entity with ANNIE using IKVM in .net

I am looking for some guidance on using Gate and ANNIE in a .net enviornment. Has anyone converted GATE to a .NET DLL using IKVMC, and had much success running named entity recognition in .NET/C# using the converted DLL? Thanks in advance.
user383817
  • 31
  • 2
3
votes
2 answers

Using IKVM to convert a JAR (Flying Saucer - xhtmlrenderer)

I wanted to use the Flying Saucer Java API in .NET so I tried to use IKVM to convert the Flying Saucer library: ikvmc core-renderer.jar For some reason, IKVMC gave me an exe core-renderer.exe so I renamed it to core-renderer.dll, added to my…
kizzx2
  • 18,775
  • 14
  • 76
  • 83
3
votes
2 answers

Setting CLASSPATH during runtime

How do I set a CLASSPATH variable during runtime while using IKVM? I've been trying to do it by using: java.lang.System.setProperty("java.class.path", "whatever"); The class I'm calling requires a configuration file in the classpath to work - and I…
Ciddan
  • 374
  • 5
  • 19
3
votes
2 answers

Could not load file or assembly IKVM.OpenJDK.Core

I am using MPXJ , a library allowing project information to be manipulated in Java and .Net. (more info at http://mpxj.sourceforge.net/ ) I am working with Visual Studio 2012. When I use the VSTO project template for console application or…
Nipon
  • 31
  • 1
  • 1
  • 3
3
votes
4 answers

Specifying a path to Models for StanfordCoreNLP

I am using StandordCoreNLP using IKVM.NET. Is there a way to specify a path to the parser's models var pipeLine = new StanfordCoreNLP(props); throws an exception: java.lang.RuntimeException: java.io.IOException: Unable to…
AstroSharp
  • 1,872
  • 2
  • 22
  • 31
1 2
3
19 20