English 中文(简体)
IKVER - Unable to transform a jar to dll
原标题:IKVM - Unable to convert a jar to dll

工作队

Ia m using IKVM to convert a jar file to a dll, so that I can use it with C# to test the Java application...I dont have the original java source code or the class files. Here is what I am doing and the error I get:

ikvmc myApplication。 jar

Note IKVMC0002: output file is "asapi.dll"
Warning IKVMC0100: class "org.apache.log4j.Logger" not found
Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in "com.myApp.authenticateUser(LNote IKVMC0002: output file is "asapi.dll"
Warning IKVMC0100: class "org.apache.log4j.Logger" not found
Warning IKVMC0111: emitted java.lang.NoClassDefFoundError in
vices.AsApi.authenticateWithArtifact(Ljava.lang.String;Lcom.myApp.AppApi)....

任何想法? 该杰尔案卷含有一种主要方法......

Regards, Deekshit

问题回答

I believe you need something more along the lines of:

/usr/bin/mono 
 /path/to/ikvm-0.42.0.6/bin/ikvmc.exe 
 /path/to/project/target/project-1.2.3.4.jar 
 -out:/path/to/project/target/project-1.2.3.4.dll 
 -keyfile:/path/to/project/target/private-key.snk 
 -assembly:project-1.2.3.4 
 -fileversion:1.2.3.4 
 -version:1.2.3.4

如果你的申请取决于第三方的仓储,那么你可能需要在jar里加起来,使用had(并非良好做法)。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签