Reputation: 113
I recently built a JOGL Application using Eclipse IDE.. It works perfectly fine when i run it on Eclipse..
However I want to make a .jar file for this application so that I can put it on my website..
Unfortunately when I tried to export it, It says:
JAR export finished with warnings. See details for additional information. - Exported with compile warnings: /BUGS/src/main.java - Problem writing /BUGS/.DS_Store to JAR: duplicate entry: /DS_Store - duplicate entry: .DS_Store
I believe this warning wasn't crucial...
but when I actually run the .jar file
It won't run, and says "The Java JAR file "BUGS.jar" could not be launched Check the Console for possible error messages.
I'm sorry I'm a newb.... How do fix this problem? How do I check console for possible error messages?
I found a solution in other forum that suggest me to edit the manifest file, but I don't know where to find a manifest file, because I can only see BUG.jar in my directory after i export the application.. It doesn't come with any manifest file or whatsoever.
Or is there any other way to export JOGL?
Thank you....
Cheers...
Upvotes: 6
Views: 3185
Reputation: 717
The best way is to create a "runnable jar" within the Eclipse IDE.All the necessary library files will be packed but there are another set of files called Native files(thos .dll files that u install during JOGL setup) which wont work well even if u add it inside the jar.
Upvotes: 0
Reputation: 534
I've got a tutorial for this at http://wadeawalker.wordpress.com/2010/10/24/tutorial-creating-native-binary-executables-for-multi-platform-java-apps-with-opengl-and-eclipse-rcp/. It shows how to export a JOGL app from Eclipse as a set of native binaries that you can redistribute just like any other program (no Java installation is required on the user's machine).
Upvotes: 2
Reputation: 16394
I've seen that problem with .DS_Store before. Try refreshing the project/package. That worked for me.
Upvotes: 0