How to install jME 2?

Hi there,



several months ago I was able to download and "install" jME 1. I tested it and it was really nice. But I was only able to do this, because the tutorial on installing jME1 was so good.



I have several problems to install jME 2, because I found no Tutorial to do this, just comments it's like jME 1 just with svn instead of cvs. But I don't think so



Is there any HowTo install jME2 for dummies?



Kind regards

I was able to checkout jME2 and also to compile it, but if I want to start one of the tests I get 10 times following message and no window with the test appears:

[NSConditionLock unlock]: lock (<NSConditionLock: 0x19cd50> '(null)') unlocked when not locked
java[626:14b03] *** Break on _NSLockError() to debug.



Does anybody know how to fix it?

Looks like you need to use swt_fake.jar in the macosx/cocoa directory instead of the swt.jar in the macosx/carbon directory.

I changed the swt.jar from the macosx/carbon to the swt_fake.jar but I I get following messages:

2008-08-06 18:14:36.646 java[166:80f] [Java CocoaComponent compatibility mode]: Enabled
2008-08-06 18:14:36.647 java[166:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
06.08.2008 18:14:37 jmetest.TestChooser start
INFO: Composing Test list...
06.08.2008 18:14:37 jmetest.TestChooser find
INFO: Searching for Demo classes in "jmetest".
06.08.2008 18:14:39 com.jme.scene.Node <init>
INFO: Node created.
2008-08-06 18:14:40.922 java[166:17403] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1aa3d0> '(null)') unlocked when not locked
2008-08-06 18:14:40.922 java[166:17403] *** Break on _NSLockError() to debug.
2008-08-06 18:14:41.059 java[166:17403] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1bb420> '(null)') unlocked when not locked
2008-08-06 18:14:41.059 java[166:17403] *** Break on _NSLockError() to debug.
2008-08-06 18:14:41.160 java[166:17403] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x1aaa80> '(null)') unlocked when not locked
2008-08-06 18:14:41.161 java[166:17403] *** Break on _NSLockError() to debug.
2008-08-06 18:14:41.263 java[166:17403] *** -[NSConditionLock unlock]: lock (<NSConditionLock: 0x13b6c0> '(null)') unlocked when not locked
2008-08-06 18:14:41.265 java[166:17403] *** Break on _NSLockError() to debug.



In the background the window of the TestChooser appears but it's loading and loading till I shutdown it

2008-08-06 18:14:36.647 java[166:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000



shows you still have the swt.jar in your classpath. :(
renanse said:

2008-08-06 18:14:36.647 java[166:80f] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000



shows you still have the swt.jar in your classpath. :(


The only swt.jar in buildpath is the swt-fake.jar no other.

try deleting the swt.jars.  Something has to be referencing them

So…I deleted the subfolders linux, macosx-cabon and windows from the swt folder. In the macosx-cocoa is only the swt_fake.jar and no other swt.jar or something like this is there.



But the message stay  :?



I don't know what I do wrong, maybe I'm to stupid to get it run.



But thanks for your answers renanse, without them I would be totally crazy. So I have the hope that you can find out what I do wrong


EDIT

I kicked the jme-swt.jar out of the classpath and now the Tests are working. Just the jmeswttest doesn't run, but this is understandable for me

Thanks for your patience renanse

Wow… I don't know.  Somehow you are referencing real SWT binaries.  Are you using Eclipse?  Maybe try a clean rebuild.  Something might be cached.

Yes, I’m using Eclipse and I used the ant script from http://www.jmonkeyengine.com/jmeforum/index.php?topic=8610.0 to checkout and compile.



During my problems I cleaned the project very often, but the only to get it to work was to remove the jme-swt.jar from classpath

I don't use ant to compile or "install", so perhaps that is the clue there.

So, I tested a bit around.



I checked out jme2 new into a new project. setup the classpath and used the included ant-script to create the jars.



Then I created a new project, added the created jars and the lwjgl.jar etc. and tested a copied a test to the new project.



When I have the jme-swt.jar in the classpath the old message comes and without it the test works.



I think there is something wrong in the jme-swt.jar. But I don't know