简体   繁体   中英

How to export Java OpenGL (JOGL) from Eclipse?

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...

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).

I've seen that problem with .DS_Store before. Try refreshing the project/package. That worked for me.

最好的方法是在Eclipse IDE中创建一个“可运行的jar”。所有必要的库文件都将被打包,但还有另一组文件称为本机文件(在JOGL设置期间安装的.dll文件),这些文件不能很好地工作即使你把它添加到罐子里面。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM