All announcements will happen here. Sorry for not getting this up sooner. I will (hopefully) port the old contact back here ASAP. Until then, please post away!
-ChrisM
All announcements will happen here. Sorry for not getting this up sooner. I will (hopefully) port the old contact back here ASAP. Until then, please post away!
-ChrisM
Hi all,
my name is Eirikur Hrafnsson and I’ve spent a lot of time now getting odejava to work on MacOS X and would like to share my tutorial with the forum since I did not find any information on how to do that in the last two weeks! And believe you me I have searched every corner for every hint I could find.
This step by step describes how to get ODE and ODEJava and the examples running on OSX. The process has robbed me of many sleepless nights so I think it will be appreciated by at least the mac-java developers out there : )
Hopefully the ode java guys will add this tutorial to the project along with the precompiled binaries I sent them…anyways here goes:
README: INSTALLING ODEJAVA ON MACOS X
Odejava (Open Dynamics Engine for Java)
Project website: http://odejava.dev.java.net
License: BSD, see license.txt file
ODE website: http://q12.org/ode
Author: Jani Laakso, jani.laakso@itmill.com
Date: 21. December 2003
Author of this readme: Eirikur S. Hrafnsson, eiki@idega.is, http://www.idega.com
Hi mac fans!
This is a dummy’s guide (for people like me : ) to getting ODE for Java running on MacOS X and the excellent test applications!
I wrote the guide after about 2 weeks of trying to get ode on OS X to work and because nobody seemed to have it running under osx yet!
In other words this readme covers compiling the necessary libode.dylib dynamic library and libjavaode.jnilib (java to native library)
to get you started with ode for java on the best Unix and Java development operating system on the planet ; )
Just follow the simple steps to goodness…
(If you want to use double precision you need to do some changes to source files (see the official readme))
Congratulations! Basically your done! Now you can start developing those cool games you where thinking of : D
Just add the “net.java.dev.odejava” package to classpath or just add the folder “pathtoyourfolder”/odejava/ode to your classpath. Or make your own jar : )
For the examples using JOGL to run you need to copy or symlink “pathtoyourfolder”/odejava/ode/lib/xith3d/jogl/macos/libjogl.jnilib to /Library/Java/Extensions/
Add the “net.java.dev.odejava” package or in other words “pathtoyourfolder”/odejava/ode to your classpath.
Put all the needed 3rd party libraries somewhere in classpath or use the java -cp option
You need these libs that are under pathtoyourfolder"/odejava/
lib/xith3d/xith3d.jar:lib/xith3d/vecmath.jar:lib/xith3d/jogl/macos/jogl.jar:lib/xith3d/xith_utilities.jar:lib/xith3d/log4j.jar
Run the demos with there commands from Terminal (clicking mouse buttons and dragging, pressing space and alphanumeric keys really make the demos interesting)
java -Djava.library.path="/Library/Java/Extensions" net.java.dev.odejava.xith3d.test.BoxApp
java -Djava.library.path="/Library/Java/Extensions" net.java.dev.odejava.test.xith3d.CarApp
java -Djava.library.path="/Library/Java/Extensions" net.java.dev.odejava.test.OdeHelloWorld (no graphics test)
my setup example
I just run this command from anywhere in the Terminal app because I moved the libraries to one place.
java -cp “/Users/Shared/idega/3DJava/odejava/ode:/idega/lib/xith3d.jar:/idega/lib/vecmath.jar:/idega/lib/jogl.jar:/idega/lib/xith_utilities.jar:/idega/lib/log4j.jar” -Djava.library.path="/Library/Java/Extensions" net.java.dev.odejava.xith3d.test.BoxApp
Conclusion
I hope this readme helped you and you are finally on your way to creating really cool stuff on the mac with Java!
Thanks, questions and piles of electronic cash can be mailed to me at eiki@idega.is ; )
Best of luck!
Eirikur S. Hrafnsson, eiki@idega.is
Chief Software Engineer
Idega Software, J2EE RAD frameworks and other cool stuff
http://www.idega.com/
First off, shouldn’t that huge reply up there have been posted on its own, instead of here?
Second, I believe the proper spelling of this forum should be “CLUEbies,” as opposed to “CLUbies.”
With love,
–the niggler