Game Development Reference
In-Depth Information
Compiling the Java Application
As the next step you must compile the updated file
ch02.project.MainActivity.java
.
Follow these steps to compile the
java
file:
1.
In Eclipse, select Run ➤ External Tools ➤ External Tools
Configurations (see Figure
2-7
).
2.
Create a new “run configuration” with:
Ch02 Project javah
.
Location:
Name:
C:\Program Files\Java\jdk1.8.0_20\bin\javah.exe
Working directory:
${workspace_loc:/Ch02.Project/bin}
Arguments:
-d ${workspace_loc:/Ch02.Project/jni} -classpath
${workspace_loc:/Ch02.Project/src} ch02.project.ProjectActivity
Figure 2-7.
External tools configurations (main)