ikvm

How to reference identifiers with dollar signs from C#?

僤鯓⒐⒋嵵緔 提交于 2019-12-23 07:38:50
问题 I'm trying to use a DLL generated by ikvmc from a jar file compiled from Scala code (yeah my day is THAT great). The Scala compiler seems to generate identifiers containing dollar signs for operator overloads, and IKVM uses those in the generated DLL (I can see it in Reflector). The problem is, dollar signs are illegal in C# code, and so I can't reference those methods. Any way to work around this problem? 回答1: You should be able to access the funky methods using reflection. Not a nice

Java classes can't get the resources in JAR files that compiled with IKVM

人走茶凉 提交于 2019-12-22 18:15:54
问题 I've converted a java library succesfully with ikvmc. Java library uses some resources inside its self jar file. I can reach all classes of this java library, but if I call a method that calls this.getClass().getResource(), it doens't search these resources in the assembly or the jar file in the assembly. But if I put these resources to same folder with the assembly, it can find the resources. But it doesn't work well everytime. For instance, it can't find the resources if I referenced the

PDFBox - Building the latest version for .NET using IKVM

99封情书 提交于 2019-12-21 21:31:29
问题 I would like to build the latest version of PDFBox (http://pdfbox.apache.org/userguide/dot_net.html) for use within my .NET project. I have no experience with Java whatsoever but I am using the steps defined here: http://www.ikvm.net/userguide/tutorial.html I am using the following versions: - IKVM (0.42.0.6) - PDFBox (1.2.1) JAR file The problem is that when I try to create the DLL a series of error messages are displayed - i.e. "java.lang.NoClassDefFoundError". I am facing the same problem

String and complex data types in Map.xml for IKVM!

江枫思渺然 提交于 2019-12-20 05:37:06
问题 I am using IKVM to transform my java .jar file to a .NET .dll file. I can create a property from the getter and setters of integer types .. But am not able to do so for string data type in the java code. Can you please tell me what is the format to be used in the map.xml for string or complex data type for IKVM!! 回答1: For non-primitive types the signature representation is "L" + type name + ";". Here's an example: <property name="Foo" sig="()Ljava.lang.String;"> <getter name="getFoo" sig="(

Conversion of jar to dll using ikvm

梦想与她 提交于 2019-12-18 01:17:08
问题 I am trying to convert a jar into dll in dotnet using IKVM but am getting this error Exception in thread "main" java.lang.ClassNotFoundException: \Location of the jar\... CAn anyone provide some guidance.. Thanks in advance 回答1: Prerequisites - You must have the JDK installed on your system. Set the environment variables for the JDK. Steps: Open the command prompt. Go to the ikvmc folder ( ikvmc.exe comes with the ikvm package). Enter the command ikvmc -out:myapp.dll myapp.jar 回答2: First,

Why do multiple threads not go faster in .NET (they do in Java)

本小妞迷上赌 提交于 2019-12-13 19:08:08
问题 We have a benchmarking program for our reporting system that generates a specific report 2,000 times. We have tried to reduce this down to just the time in our engine so: The template is read from disk once into memory, then that copy in memory is passed to the engine. File based datasources (XML, JSON) are also read into memory once and then that cached datasource is reused. The SQL database is SqlServer on the same machine. So there is I/O, but it should be fast. The OData datasource is on

Ignoring Header/Footer text when using TIKA

早过忘川 提交于 2019-12-13 02:48:12
问题 I'm using IKVM in order to use the TIKA library in a .NET application. I'm able to extract text but now I want to tell TIKA that I do NOT want the Header/Footer information. TIKA case TIKA-906 shows that the latest version now includes the header/footer text, but does not show how to exclude it. I'm pretty much using the same code outlined here. Any help would be greatly appreciated. 来源: https://stackoverflow.com/questions/16862346/ignoring-header-footer-text-when-using-tika

Gephi's java default method not implemented in C# with an ikvm-from dll library

天大地大妈咪最大 提交于 2019-12-12 21:13:09
问题 I have very few knowledges in java so I maybe misunderstood my problem: I'm working on the Gephi API which is in Java, and I used IKVMC to work on a dll. I tried to create an empty graph as explained here in the Gephi doc https://github.com/gephi/gephi/wiki/How-to-manipulate-Graph In C# I tried this: ProjectController pc; pc = (ProjectController)org.openide.util.Lookup.getDefault().lookup(typeof(ProjectController)); At the second line I get the following error: Exception non gérée : System

How do I use IKVMC to convert a specific JAR file to DLL when the jar file has various outgoing dependencies?

我的未来我决定 提交于 2019-12-12 02:57:15
问题 I'm working with Websphere MQ. And I need to convert a specific JAR file to a DLL. Here is the collection of JARS from the WMQ Client. Here is the JAR Analyzer File for the collection listing the various incoming and outgoing dependencies. The File I want to convert is com.ibm.mq.jar which has the following outgoing dependencies - com.ibm.mq.commonservice.jar com.ibm.mq.headers.jar com.ibm.mq.jmqi.jar The problem is I don't know what command to pass in the command prompt to convert the jar

MissingMethodException using IKVM

﹥>﹥吖頭↗ 提交于 2019-12-12 01:57:22
问题 I'm trying to use Stanford CoreNLP (which is a Java project) in C#. I found this Nuget package which contains CoreNLP converted to .NET using IKVM, and it's working fine, however I need to do some modifications on the java project as well. I downloaded CoreNLP from Github, I can build the CoreNLP JAR from Ant, and it's also running fine in eclipse, however I'm having problems in converting JAR to DLL . Based on some build-log that I found in google, I'm doing this: ikvmc.exe -version:2.1 ..