Export and compilig Jar ( eclipse )

Hello, I'm brazilian and I don't speak english very well, I'm sorry, so I have a big problem:


  • I'm generating jar, but I don't compilig the jar.
  • I'm include de jme jar files in the project, but don't compile.
  • I don't configure classpath, help me?



    tank you

Well, we have at least one Brazilian in our team (perick), so welcome, you are not alone  :).



You can try right-click on your project and then choose: 'Export as JAR', and just choose the file name for you file. This will create a JAR with your classes (compiled) in it.



To run it, however, you need to also have all jme *.jar files, and the libraries (under ./lib/ directory). Do you want to run you application from the command line? If so, then the you can use something like this:


java -Djava.library.path=./lib -cp lwjgl.jar:jogg-0.0.7.jar:jorbis-0.0.15.jar:jme.jar:jme-awt.jar:jme-effects.jar:jme-model.jar:jme-audio.jar:jme-terrain.jar:yourjar.jar your.package.YourClass



Or something similar, assuming you are using Linux/Mac and not Windows.... you would have to use ; instead of : in windows.

Please explain further your problem if this does not help.