diff --git a/examples/nbody/build.xml b/examples/nbody/build.xml
index 9a4e9304e100063eae0a7502c12c49486209ecb5..faee25e7986ac38f0e8e41ae0f7164b2f3f48949 100644
--- a/examples/nbody/build.xml
+++ b/examples/nbody/build.xml
@@ -68,7 +68,20 @@
       <delete file="${ant.project.name}.jar"/>
    </target>
 
-   <target name="run" depends="check">
+  
+
+   <target name="run-jtp" depends="check">
+      <java classname="com.amd.aparapi.examples.nbody.Main" fork="true">
+         <classpath refid="runtime.class.path"/>
+         <sysproperty key="java.library.path" path="..\..\com.amd.aparapi.jni:${jogldir}\lib"/>
+         <sysproperty key="com.amd.aparapi.executionMode" value="JTP"/>
+         <sysproperty key="bodies" value="16384"/>
+         <sysproperty key="height" value="800"/>
+         <sysproperty key="width" value="800"/>
+      </java>
+   </target>
+
+   <target name="run-gpu" depends="check">
       <java classname="com.amd.aparapi.examples.nbody.Main" fork="true">
          <classpath refid="runtime.class.path"/>
          <sysproperty key="java.library.path" path="..\..\com.amd.aparapi.jni:${jogldir}\lib"/>
@@ -79,4 +92,6 @@
       </java>
    </target>
 
+   <target name="run" depends="run-gpu"/>
+
 </project>