I installed jdk1.2.2RC3 solved the problem but now I get the following
message
Font specified in font.properties not found
[--dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
How can I fix it ?
Pierre
--
To UNSUBSCR
The example helloworld.cpp gives me the same error.
Here is my makefile.
What's wrong
Pierre
JDK = /usr/local/jdk1.2.2
REP_INC = -I$(JDK)/include \
-I$(JDK)/include/linux
REP_LIB = -L$(JDK)/lib/i386 \
-L$(JDK)/jre/lib/i386 \
-L$(JDK)/jre/lib/i386/classic \
I use JDK1.2.2 RC2 on RedHat 6.1.
The following code gives a SIGSEGV on JNI_CreateJavaVM.
Could you tell me where is the problem.
#include
#include
#include
int main(int argc, char **argv)
{
JavaVM * jvm;
JNIEnv * env;
JavaVMInitArgs vm_args;
vm_args.version = 0x00010001;
JNI_Ge
I have fixed my problem. I forgot to include the Native.h file produced by javah
which includes the extern "C".
Pierre.
Mark Delafranier wrote:
> You will probably have to extern "C" the code in your C++ library. JNI uses C
> calling conventions.
>
> Mark
>
> I hava a problem with JNI.
> I use
I hava a problem with JNI.
I use RedHat 6.1 and jdk1.2.2.
The following code doesn't work
public class Native {
static {
System.loadLibrary("Native");
System.out.println("The Library is loaded...");
}
public Native() {}
public native void Hello();
public static void main(S
I use RedHat 6.1 and JDK1.2.2 RC1
I have 2 kind of problemes with the JNI.
First I get an exception with the following code.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Hello
at Native.main(Native.java:14)
// Here is Native.java
public class Native {
static {
Syste