PDA

View Full Version : Need help with IKVM (Java with Mono)



solomarv
April 15th, 2006, 05:58 PM
I am getting this problem:


$ javac Demo.java -classpath 'mscorelib.jar:gtk-sharp.jar'
Demo.java:5: cannot access cli.System.Object
file cli/System/Object.class not found
Application.Init();
^
1 error


Any ideas?

I checked mscorlib.jar, and found Object.class in java.lang, so I copied it to cli.System, and still getting the same problem.

For those of you who may not know, IKVM allows to use Mono libraries (GUI ones are of particular interest) inside of Java applications. Before using Mono, I had to run:


$ ikvmstub /usr/lib/mono/1.0/mscorlib.dll
$ ikvmstub /usr/lib/mono/gtk-sharp/gtk-sharp.dll
$ ikvmstub /usr/lib/mono/gtk-sharp/glib-sharp.dll
$ ikvmstub /usr/lib/mono/gtk-sharp/atk-sharp.dll

This is latest dapper, if it matters.

jrei
July 19th, 2006, 02:29 PM
I have the same problem.

Its actually quit difficult to find helpfull information in the web, howto use ikvm propperly.

Greetings, Jörn