Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  Macro / Inlineable  (Read 7326 times)
0 Members and 1 Guest are viewing this topic.
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #30 - Posted 2005-09-12 17:02:04 »

You can unpack without java. The jdk comes with a native unpack program, which can be used by installers. The jre installer uses this technique (afaict).

http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/unpack200.html

You could use these cmd line parameters:

pack200 --no-gzip --modification-time=latest --effort=9 --deflate-hint="false" --strip-debug --unknown-attribute=strip foo.jar.pack foo.jar

http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/pack200.html

And instead of gzip you could use a superior compression scheme like lzma. Over at 7.zip.org you can get the lzma sdk, which comes with a cmd line compressor/decompressor.

However, the best option would be using an installer, which already does that like NSIS.

With lzma the JEmu2 jar gets down to 201,947 Bytes (-fb255) and the rt.jar gets even down to 3,543,040 Bytes *gasp* Smiley

Warning - while you were typing a new reply has been posted. You may wish to review your post.

Uhm yea... basically what Cas said. LZMA ftw! Grin

弾幕 ☆ @mahonnaiseblog
Offline princec

JGO Kernel


Medals: 342
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #31 - Posted 2005-09-12 17:36:31 »

Readers may like to note the difference in download size between the Mac OS version of Ultratron (which is more or less just the pure java 1.4 jars needed to play the game in a zip) and the Win32 version of Ultratron (which also contains an entire, er, Puppygames Java Runtime. Possibly)

Cas Smiley

Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #32 - Posted 2005-09-13 02:01:03 »

Though we also have the ability to package a linux installer (without VM) for a "remote mode" version of our application.  It's essentially the UI to the real app that talks to a server via TCP instead of to a local process via JNI.

And everyone here HATEs doing installers  (because all Installers seem to be painful to deal with), so it's not like we want to do it all over again just to save some bytes in the download...  well I want to, so long as it isn't me doing it Smiley

Can I pack/unpack the JARs from a JRE install without hosing anything? (e.g. they are signed, right?)

That also means if Sun adds a new JAR to the mix in Java 6, then I have to tweak everything all over again or have some obscure bug because a class is missing and it isn't found until some weird user tries something dumb.

I think this is really a job for the Install Anywhere folks.

Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (24 views)
2014-07-24 01:59:36

Riven (24 views)
2014-07-23 21:16:32

Riven (18 views)
2014-07-23 21:07:15

Riven (21 views)
2014-07-23 20:56:16

ctomni231 (50 views)
2014-07-18 06:55:21

Zero Volt (45 views)
2014-07-17 23:47:54

danieldean (36 views)
2014-07-17 23:41:23

MustardPeter (39 views)
2014-07-16 23:30:00

Cero (54 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!