Previous | Next | Trail Map | Using the JNI | Step By Step

Step 2: Compile the Java Code

Use the Java programming language compiler to compile the Java programming language class that you created in the previous step. At this time, you should also compile the main Java application that you wrote to test the native method. Here's the command to compile both:
javac HelloWorld.java Main.java


Previous | Next | Trail Map | Using the JNI | Step By Step