Previous | Next | Trail Map | Integrating Native Methods into Java Programs | Step By Step


Step 6: Create a Dynamically Loadable Library

Remember in Step 1: Write the java Class that you use this method call to load a dynamically loadable library named hello into your program at runtime.
System.loadLibrary("hello");

Now you are ready to create the dynamically loadable library. Use the C compiler to compile the C source code created in the previous steps, HelloWorld.c and HelloWorldImp.c, into a dynamically loadable library named hello.

See Also

For more information about the C compiler, refer to its manpage.


Previous | Next | Trail Map | Integrating Native Methods into Java Programs | Step By Step