Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I made a Java project with images, external JARs, and natives(the JARs and natives are for LWJGL and Slick). How can I export this as an executable? I already tried JarSplice and WinRun4J, but when I run the executable, nothing happens. Why?

EDIT: There are also sound files and TrueType fonts.

share|improve this question

closed as off topic by Tim Holt, Josh Petrie, Byte56, Trevor Powell, John McDonald Jan 18 '13 at 17:26

Questions on Game Development Stack Exchange are expected to relate to game development within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Not game related... –  Tim Holt Jan 14 '13 at 5:30

1 Answer 1

I like to use Launch4j to generate my Java ".exe" files for Windows. You can let the executable auto-download the necessary Java VM if necessary, and, for debug purposes, you can start your executable in console, so if an error happens, you will be able to see what is causing it.

Just remember to ship the extra files with your executable (dlls, images, others)... To create a Windows installer, I recommend NSIS.

share|improve this answer
    
I too was an NSIS fan. You can also convert jars to exe's with NSIS. See nsis.sourceforge.net/Best_Java_Launcher –  Sri Harsha Chilakapati Jan 16 '13 at 9:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.