How to successfully build jstackalloc in Eclipse?

jiapei100
Posts: 11
Joined: Tue Nov 17, 2009 4:47 pm

How to successfully build jstackalloc in Eclipse?

Post by jiapei100 »

Hi, all:

How to build jstackalloc in Eclipse?
Whenever I tried to build it with ant, I got the following error messages:
[javac] 100 errors

BUILD FAILED
../jstackalloc/nbproject/build-impl.xml:325: The following error occurred while executing this line:
../jstackalloc/nbproject/build-impl.xml:158: Compile failed; see the compiler error output for details.
all errors seems to tell that the dependency ASM seems not in the right position. Where is the place for me to specify the correct ASM directory?

Cheers
Pei
xexuxjy
Posts: 225
Joined: Wed Jan 07, 2009 11:43 am
Location: London

Re: How to successfully build jstackalloc in Eclipse?

Post by xexuxjy »

Which JStackAlloc are you using? the standar JBullet library seems to come with an existing JStackAlloc jar?

do you have any more info on the output/error ?
jiapei100
Posts: 11
Joined: Tue Nov 17, 2009 4:47 pm

Re: How to successfully build jstackalloc in Eclipse?

Post by jiapei100 »

Hi, I'm using JStackAlloc found at http://www.java-gaming.org/index.php/topic,18843.0.html
which can be downloaded from http://jezek2.advel.cz/tmp/jstackalloc/ ... 080716.zip

The only dependent jar files of this version of jstackalloc are:
a) apache ant
b) asm-all-3.1.jar, which can be found in the Latest version of jbullet, which can be downloaded from http://jbullet.advel.cz/download/jbullet-20101010.zip
(By the way, I tried asm-3.1.jar, asm-3.3.1.jar downloaded from http://forge.ow2.org/projects/asm/, neither works. )

There is no red cross from within Eclipse IDE, but just failed to build jstackalloc with a lot or error messages when "ant" build the project:
[javac] Compiling 9 source files to C:\Users\peij\MyPrograms\Java\Eclipse\jstackalloc\build\classes
[javac] C:\Users\peij\MyPrograms\Java\Eclipse\jstackalloc\src\cz\advel\stack\instrument\CheckClass.java:23: package org.objectweb.asm does not exist
[javac] import org.objectweb.asm.*;
[javac] ^
[javac] C:\Users\peij\MyPrograms\Java\Eclipse\jstackalloc\src\cz\advel\stack\instrument\CheckClass.java:24: package org.objectweb.asm.commons does not exist
[javac] import org.objectweb.asm.commons.EmptyVisitor;
.....
[javac] C:\Users\peij\MyPrograms\Java\Eclipse\jstackalloc\src\cz\advel\stack\instrument\InstrumentClass.java:88: cannot find symbol
[javac] symbol : variable Opcodes
[javac] location: class cz.advel.stack.instrument.InstrumentClass
[javac] clinitMethod = new MethodNode(Opcodes.ACC_STATIC, "<clinit>", "()V", null, null);
[javac] ^
[javac] 100 errors

BUILD FAILED
C:\Users\peij\MyPrograms\Java\Eclipse\jstackalloc\nbproject\build-impl.xml:325: The following error occurred while executing this line:
C:\Users\peij\MyPrograms\Java\Eclipse\jstackalloc\nbproject\build-impl.xml:158: Compile failed; see the compiler error output for details.

Rgds
Pei



xexuxjy wrote:Which JStackAlloc are you using? the standar JBullet library seems to come with an existing JStackAlloc jar?

do you have any more info on the output/error ?
xexuxjy
Posts: 225
Joined: Wed Jan 07, 2009 11:43 am
Location: London

Re: How to successfully build jstackalloc in Eclipse?

Post by xexuxjy »

This may be some use :

http://www.ntu.edu.sg/home/ehchua/progr ... ullet.html

not sure why you're trying to build JStackAlloc itself, but it is a little messy trying to test things in eclipse.
jiapei100
Posts: 11
Joined: Tue Nov 17, 2009 4:47 pm

Re: How to successfully build jstackalloc in Eclipse?

Post by jiapei100 »

So, are you recommending Netbeans instead?

Cheers
Pei
xexuxjy wrote:This may be some use :

http://www.ntu.edu.sg/home/ehchua/progr ... ullet.html

not sure why you're trying to build JStackAlloc itself, but it is a little messy trying to test things in eclipse.