I wasn't entirely certain where to post this topic, but the problem I've been having with some of my 3D apps is very inconsistent performance on different platforms- e.g, running indordinately slower on Windows/not at all on Linux.

So, what I have here is a (relatively) simple LWJGL application that creates and renders a small planet using a modified form of fractal terrain generation. EDIT: Have replaced eclipse project with kappa's spliced jarfile.

I haven't really put together a double-clickable application- and would appreciate any tips on that, actually.

I'd recommend you try the JarSplice tool, it'll create a single executable jar for you (which includes all your jars and native files). This'll create a jar that works on Windows, Mac and Linux just by double clicking (so no need to mess with the command line).

Yeh, works fine for me, had a quick go at putting your project through it, produced this. Which works fine here.

You probably missed a step or something.

Yeah, most likely- that .jar you whipped up works fine for me, so thanks for that. What's the procedure? Make a jar out of everything except lwjgl.jar+natives first? Glad it works smoothly outside the Mac, anyways.

Yeah, most likely- that .jar you whipped up works fine for me, so thanks for that. What's the procedure? Make a jar out of everything except lwjgl.jar+natives first? Glad it works smoothly outside the Mac, anyways.

Not difficult to create a executable jar for the above project.

1) Add all your project jars - since you only use lwjgl.jar and your own classes that all you need to add there. Your src folder wasn't in a jar/zip so just put it in one and added it to the list.

Not at the moment, you can try run the tool via the command line to see if any exceptions are thrown.

That's where I got the 'jarfile is invalid or corrupt' message from. I'm going to see if can just keep the manifest file and the org.ninjacave.jarsplice.core.JarSpliceLauncher.class file, then add in the native libs manually...

Wait! It's working perfectly now. I think the problem was that I was adding .jars other than the main source and lwjgl.jar (i.e, lwjgl-debug, etc.) Thanks a bunch!

(BTW, there's a slight bug with parent folders not being displayed when you want to save the final spliced .jar to a different folder-

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.apple.laf.AquaMenuPainter.paintSelectedMenuItemBackground(AquaMenuPainter.java:148) at com.apple.laf.AquaComboBoxRendererInternal.paintComponent(AquaComboBoxRenderer.java:125))

Quote

Not at the moment, you can try run the tool via the command line to see if any exceptions are thrown.

Also- I misunderstood you here. I thought you meant running the final .jar from the command line. Anyway, my mistake...

(BTW, there's a slight bug with parent folders not being displayed when you want to save the final spliced .jar to a different folder-

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.apple.laf.AquaMenuPainter.paintSelectedMenuItemBackground(AquaMenuPainter.java:148) at com.apple.laf.AquaComboBoxRendererInternal.paintComponent(AquaComboBoxRenderer.java:125))

yeh, this is a Mac OS X java bug with the Ocean theme, I'll see if I can change the LAF to one that works.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org