F
Federico
Hello,
I'm trying to build the SUN's JNI example
(http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step1.html),
but I cannot!!
I'm working on MacOS X, and I get the above error. Interestingly, the
jni.h exists at /System/Library/Frameworks/JavaVM.framework/Headers/,
even if the compiler says it doesn't. But that jni.h is a "link" and I
cannot do a simple "more" of it... (it says also "No such file or
directory")
Could you help me, please?
Thanks in advance!
Federico
cc -c -I/System/Library/Frameworks/JavaVM.framework/Headers HelloWorldImp.c
HelloWorldImp.c:1:17: jni.h: No such file or directory
In file included from HelloWorldImp.c:2:
HelloWorld.h:2:17: jni.h: No such file or directory
In file included from HelloWorldImp.c:2:
HelloWorld.h:15: error: syntax error before "void"
HelloWorld.h:16: error: parse error before '*' token
HelloWorld.h:16: warning: data definition has no type or storage class
HelloWorldImp.c:5: error: syntax error before "void"
HelloWorldImp.c:6: error: parse error before '*' token
I'm trying to build the SUN's JNI example
(http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step1.html),
but I cannot!!
I'm working on MacOS X, and I get the above error. Interestingly, the
jni.h exists at /System/Library/Frameworks/JavaVM.framework/Headers/,
even if the compiler says it doesn't. But that jni.h is a "link" and I
cannot do a simple "more" of it... (it says also "No such file or
directory")
Could you help me, please?
Thanks in advance!
Federico
cc -c -I/System/Library/Frameworks/JavaVM.framework/Headers HelloWorldImp.c
HelloWorldImp.c:1:17: jni.h: No such file or directory
In file included from HelloWorldImp.c:2:
HelloWorld.h:2:17: jni.h: No such file or directory
In file included from HelloWorldImp.c:2:
HelloWorld.h:15: error: syntax error before "void"
HelloWorld.h:16: error: parse error before '*' token
HelloWorld.h:16: warning: data definition has no type or storage class
HelloWorldImp.c:5: error: syntax error before "void"
HelloWorldImp.c:6: error: parse error before '*' token