Is it possible to create a self-executable Jar file for a Java3D app with all of the Java3D libraries (for mac/win/linux) all in the same jar file? I feel like I've seen this done before but now that I actually want to do it myself I can't find any examples of it I'm hoping to be able to do this as an alternative to Webstart. Can this be done?

Back in 2005 I made a utility (bJAR) which re-compressed Executable Jar files using more advanced compression algorithms instead of Deflate.

The output Jar is fully complient with java 1.4 1.5 and 1.6 and i believe that it is complient with 1.3 and 1.2.

By using the LZMA option I could achieve pretty decent reduction in size. e.g.

The jude-community.jar in the community version of JUDE is 4,614,701 bytes when compressed using Deflate, but when compressed using bJAR and LZMA option 3 I am able to reduce the size of the JAR to 2,323,990 bytes.

The JAR works as before. The only change is that there is a slight ( almost unoticable) pause before the java ap loads.

I have attached the utility to this post... you will have to remove the pdf extension.

This may make the option of including all of your libraries in a single executable JAR more viable. If you do add your libraries into one JAR, make sure you either decompress these library jars into your project structure if including the library JARs inside another JAR make sure the library JARs are uncompressed JARs. In this way you will achieve maximum compression using the bJAR utility.

For FlyingGuns I used JSmooth to create a binary distribution including Java3D. Just it is platform dependent.Check out the FG download to see wether you like it.

I am much interest to know how you included Java3D into the distribution using JSmooth. I just downloaded your game and that worked really well (very nicely done!!). Our product is now in Beta release (see also www.sudoku-ball.com) but the most difficult part is the deployment. Could you provide more details on how you included java3D?

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