Execute the Java ProgramAt this point, we can execute the program we created: java -classpath [whatever] example.jni.HelloWorldAgain, we need to have the DLL in our java.library.path , either by:
If everything's working fine, we should get: Hello World!
Hooray! You should be able to execute the Java program from inside or outside Cygwin, since we used the
Please let me know if you find errors or omissions in this walkthrough, or have general comments or questions. |