Login  Register

JogAmp Fat Jar

Posted by Sven Gothel on Aug 03, 2015; 3:30pm
URL: https://forum.jogamp.org/JogAmp-Fat-Jar-tp4035019.html

Hi All,

I cannot find the specific forum post
where we discussed creating the fat jar and its use case,
however it has been implemented and produced.

See Bug 1145 <https://jogamp.org/bugzilla/show_bug.cgi?id=1145>.

Aggregated build
  <http://jogamp.org/deployment/archive/master/gluegen_876-joal_603-jogl_1414-jocl_1066/>
contains the produced fat jar files:

Single fat jar files:
  - jogamp-fat.jar: actual fat jar file of all modules
                    with all its native files included.
  - jogamp-fat-java-src.java: the corresponding java source code for your IDE
  - jogamp-fat-test.jar: the unit tests incl. junit (currently only for JOGL)
  - jogamp-fat-test-java-src.jar: the corresponding java source code for your IDE

  <http://jogamp.org/deployment/archive/master/gluegen_876-joal_603-jogl_1414-jocl_1066/fat/>

All in one 7z archive:
  <http://jogamp.org/deployment/archive/master/gluegen_876-joal_603-jogl_1414-jocl_1066/archive/jogamp-fat-all.7z>

You can launch jogamp-fat.jar via 'java -jar jogamp-fat.jar',
which currently launches an AWT app displaying JOGL's capabilities.

You can launch jogamp-fat-test.jar (with jogamp-fat.jar inside same folder)
via 'java -jar jogamp-fat-test.jar',
which currently launches a NEWT/JOGL GearsES2 app.

jogamp-fat-test.jar can be utilizes to run any singl tests,
or all of them - ofc.

The latter might be a useful use-case for the fat jar files
besides supporting novice users.

Cheers, Sven


signature.asc (828 bytes) Download Attachment