Re: Compiling shared objects for JNI

1999-01-02 Thread Jacob Nikom
Here I wrote my own tutorial for creating JNI "Hello, World!" application. I think it is more detailed than the SUN's one. Try it, Jacob Nikom Tutorial "In the "Lesson: Compiling and Running a Java Program with a Native Method" the tutorial author described six steps in writing JNI program:

Re: Compiling shared objects for JNI

1999-01-02 Thread Matt Welsh
> libhwrld.so: HelloWorld.C HelloWorld.h > g++ $(CXXFLAGS) $< -o $@ This isn't the right way to generate a .so file. You need to use the -shared switch on gcc (I presume this is also supported by g++, but you can use gcc to transform a g++-generated .o file into a .so). Matt Welsh, UC

Compiling shared objects for JNI

1999-01-02 Thread Kevin McWhirter
How does one compile/link the shared object for JNI modules. Here is an example the shows the problems I am having. I follow the steps in the Tutorial; namely: 1) Create Java code (HelloWorld.java) 2) Compile 3) Create header for stubs (HelloWorld.h) 4) Create C/C++ code (Hel