[kaffe] Problem using javah

Guilhem Lavaux guilhem at kaffe.org
Wed Jul 21 10:20:19 PDT 2004


Samuel Richard wrote:

>Hi,
>  
>

Hi,

>
>[sam at localhost test_JNI]$ ls
>HelloWorld.class  HelloWorld.java
>[sam at localhost test_JNI]$ /usr/local/kaffe/bin/javah -classpath
>/usr/local/kaffe/jre/lib/rt.jar -jni HelloWorld
>Failed to open object 'HelloWorld'
>  
>

Our javah needs a longer classpath, try introduce '.' in the path.

/usr/local/kaffe/bin/javah -classpath
/usr/local/kaffe/jre/lib/rt.jar:. -jni HelloWorld


By default, javah scans CLASSPATH and then overwrite its classpath with 
the value given with '-classpath'.

Cheers,

Guilhem.




More information about the kaffe mailing list