| Author |
pack200 .gz file unpack and create .jar file in browser(speed test).
|
Mahesh Sardar
Greenhorn
Joined: Aug 03, 2010
Posts: 1
|
|
I have to test the speed after loading the .gz file in browser and I am having java applet based web application(Hello word) whose HelloWorld.jar file size is 743byets and using pack200 tool compressed to .gz(321 bytes)files.
1) created HelloWorld.java file
Code:
Created HelloWorld123.jar file with this class
2)Main html file hello.html
HTML Code:
3)First time tried to load the class file from the jar file it works fine(HelloWorld.class is loading in the browser).
HTML Code:
4) created different .gz file with same jar file(pack200 tool).
HelloWorld123.gz
pack200 --gzip -E9 HelloWorld123.gz HelloWorld123.jar
HelloWorld123.jar.pack
pack200 --no-gzip -E9 HelloWorld123.jar.pack HelloWorld123.jar
HelloWorld123.jar.pack.gz
pack200 --gzip -E9 HelloWorld123.jar.pack.gz HelloWorld123.jar
and tried these files with the above html code
HTML Code:
or
HTML Code:
or
HTML Code:
while loading this class I found that class loader error on sun console(as follows).
Code:
In the About detail I can get that HelloWorld123.pack.gz or HelloWorld123.jar.gz or HelloWorld123.jar.pack.gz is downloading.
My question is will browser decompress the .gz file to .jar file internally ? or I am missing some coding for .gz file decompression ?.
|
 |
 |
|
|
subject: pack200 .gz file unpack and create .jar file in browser(speed test).
|
|
|