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>
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..

But, I don't really know exactly what's wrong.
Can i get some tip or full-project file(build.xml+simple code+ .project).