We help IT Professionals succeed at work.

pack200.exe

mskumar_apk
mskumar_apk asked
on
924 Views
Last Modified: 2007-12-19
Dear Experts,

As per the following link, there are pack200.exe and unpack200.exe. I believe it is not available in JRE1.5 Beta.

http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html#pack200_compression

Can we download it from somewhere? Because I want to compress my jars (built using jre1.4.2) and my application needs jre1.4.2.

I could not use jre1.5 beta since my application will work perfectly on jre1.4.2.

Is there any way to achieve this?

Thanks for your help.

regards,
MSKumar
Comment
Watch Question

Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
download 1.5 and grab the exe's from the installation.

Author

Commented:
no. i could not find pack/unpack executables in j2re1.5 and j2sdk1.5. thats why the above question.

kindly help if any body knows what to do.
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
you sure?  According to the doco pack200 support is provided with tiger.
They may well not be exe's.

Author

Commented:
yeah. jre1.5 has pack200 class. but it does not have pack200.exe.

my application is built on jre1.4.2 and i cant use jre1.5 beta's rt.jar. (which means i can't bundler jre1.5.  in other words i cant use jre1.5 for installation and jre1.4.2 for running application).
what to do to get standalone pack200.exe. according to documentation they are saying pack200 and unpack are purely C++ programs which can be built standalone.

i am eagerly searching for the methodology.
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
> but it does not have pack200.exe

Who said it should?

> according to documentation they are saying pack200 and unpack are purely C++ programs which can be built standalone.

Where does it say that in the doco?
>> there are pack200.exe and unpack200.exe. I believe it is not available in JRE1.5 Beta.
did you download the SDK or you just downloaded the JRE? it should be in the 1.5 SDK.

Author

Commented:
no in jdk also i could not fine any pack200.exe and unpack200.exe. jre contains pack200 class using which u can pack the jars that are built on jre1.5.

actually i have downloaded linux .bin jdk file.

since i want to use pack200 for jre1.4.2 based jars, i could not do that. in fact jre1.5 has unpack.exe ( i found it from the output of execution of .bin file) which is merely deleted after the installation by java installation kit.

>> actually i have downloaded linux .bin jdk file.
if you need the .exe (which is for windows platform), you MUST download the window version of jdk and install, from there you'll find the pack200.exe file.
HTH
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
> you MUST download the window version of jdk and install

why is pack200 only available on Windows?
>> why is pack200 only available on Windows?
do you think pack200.exe is useful in any platform other then windows? as you always said to others, read the question and read the thread. :-)
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
I know what the question is asking. I didn't ask about pack200.exe, I was interested to know why you feel pack200 is only available on Windows?

> from there you'll find the pack200.exe file.

where exactly?
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
Try looking in the jre for Windows instead of the jdk (it maybe there, it may not).
>> I was interested to know why you feel pack200 is only available on Windows?
where of comment I said that, why you *always* make up something that others never committed?

>> I didn't ask about pack200.exe
It does no matter whether you ask for it. it is important that mskumar_apk asked for it!!
>> Try looking in the jre for Windows instead of the jdk (it maybe there, it may not).
what a joke! the jdk is the superset of jre. which means jdk includes everything jre has! don't tell me you don't know that objects.
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
> the jdk is the superset of jre.

That is not correct.

Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
> where of comment I said that, why you *always* make up something that others never committed?

Its a simple q, as I was curious to why pack200 apparently is not made avaiulable under linux as you stated it was available under windows and was curious why and whether it wasn't available to other os's also.
>> That is not correct.
did you ever downloaded jdk1.5 and had a look, if yes, then why it is not correct?

Author

Commented:
hello all,

cool and sorry for that confusion.

i am looking for pack200 executable (is it ok) for linux, windows and solaris.

I have downloaded j2sdk and j2re1.5 for linux, and looked for pack200 linux executable and could not find that. if j2sdk/j2re 1.5 for linux contains pack200 executable then windows j2sdk/j2re1.5 must have that pack200.exe right.

regards
MSKumar
Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
Seems kennethxu doesn't want to answer your question either :(
I suspect that Sun may have just not got around to (or overlooked) including pack200 in this initial beta release of the SDK, perhaps kennethxu can answer our questions above.
Java Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.