build.xml in jbullet

nilotic
Posts: 1
Joined: Sat Feb 25, 2012 8:59 am

build.xml in jbullet

Post by nilotic »

Hello.

I have problem like this.

Exception in thread "main" java.lang.Error: not instrumented
at cz.advel.stack.Stack.alloc(Stack.java:122


So, I followed this step.
->http://www3.ntu.edu.sg/home/ehchua/prog ... ullet.html

Create a New Project -> Include Lib(asm-all-3.1.jar, stack-alloc.jar, jinput.jar, lwjgl.jar, lwjgl_util.jar, swing-layout-1.0.3.jar, vecmath.jar.) -> edit build.xml

like this

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="myproject" default="run" basedir=".">
	<path id="myclasspath">
	       <pathelement path="bin"/>
	       <pathelement location="d:\download\jbullet-20101010\lib\jstackalloc\stack-alloc.jar/" />
	       <pathelement location="d:\download\jbullet-20101010\lib\ASM3.1\asm-all-3.1.jar" />
	       <pathelement location="d:\download\jbullet-20101010\lib\vecmath\vecmath.jar" />
	   </path>

	
	<target name="instrument-classes" >
	      <taskdef name="instrument-stack"
	         classname="cz.advel.stack.instrument.InstrumentationTask"
	         classpathref="myclasspath" >
	      </taskdef>
	      <instrument-stack dest="bin" packageName="mytest">
	         <fileset dir="bin" includes="**/*.class" />
	      </instrument-stack>
	   </target>
	 
	   <target name="run" depends="instrument-classes">
	      <java classname="mytest.TestJStackAlloc"
	         classpathref="myclasspath"
	         fork="true" failonerror="true" >
	      </java>
	   </target>
	</project>
And Run Using ANT
Then Error occurs (taskdef class cz.advel.stack.instrument.InstrumentationTask cannot be found)

I tried to copy instrument folder in lib/jstackalloc/jstackalloc-20080716/src/cz/advel/stack
Also, I tried everything in 5days.. :cry:
But, I don't really know exactly what's wrong.

Can i get some tip or full-project file(build.xml+simple code+ .project).
xexuxjy
Posts: 225
Joined: Wed Jan 07, 2009 11:43 am
Location: London

Re: build.xml in jbullet

Post by xexuxjy »

Does the default build.xml file included in JBullet work for you?

If you're trying to create an eclipse project or similar you don't necessarily need to create an ant build file for it. Just make sure your library paths are setup correctly :

http://www.bulletphysics.org/Bullet/php ... =75#p26518