File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Need some help urgently... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need some help urgently..." Watch "Need some help urgently..." New topic
Author

Need some help urgently...

Riddhi Joshi
Greenhorn

Joined: Dec 29, 2002
Posts: 21
Dear Friends,
This is for the first time I am posting discussion on the site. This site proved very helpful in clearing Java Certification and landed me up with a Job. I have a small doubt and I wanted to discuss that with you.
The size of JRE is around 33MB. Hence, while downloading through dial up it takes a lot of time to downlaod.
My question is there any way out to decrease the size of JRE or use an alternative of JRE so that the download time reduces?
I hope I get some input from you as this is really needed
Cory Wilkerson
Ranch Hand

Joined: Aug 14, 2001
Posts: 84
As best I can tell, the JRE for a windows box is 8MB: http://java.sun.com/webapps/download/DisplayLinks. There are some smaller VMs on the market and you can get all sorts of tiny VMs with considerably less functionality available in the API. By the way, are you maybe meaning the entire Java 2 SDK as opposed to just the VM/JRE?
Cory
John Dale
Ranch Hand

Joined: Feb 22, 2001
Posts: 399
As I recall, the JREs from Sun are available in two formats, US-Only and International. The US-only supports only a limited number of code pages, e.g., those used in most of the Americas and Western Europe. The International version includes support for additional characters sets, such as those used in Eastern Europe and Asia.
If it will meet your needs, you might try downloading the US-Only version of the JRE.
Riddhi Joshi
Greenhorn

Joined: Dec 29, 2002
Posts: 21
Thank you so much for getting back to me.
I really appreciate your help.
I just want the JRE and not the whole J2SDK.
However, I tried looking at JRE1.4.1_03, which is 9.9MB. I think that should work fine.
I also looked up for other VMs like Kaffe and Excelsior JET. But they do not support swing applications.
Is there anyother way to reduce the size of JRE? Something like reducing the files of JRE or deleting some unwanted files from JRE or using a good zip software to compress JRE? Can you please give me some input on this.
I again thank you for your help. I would need your support...
Regards,
Riddhi.
John Dale
Ranch Hand

Joined: Feb 22, 2001
Posts: 399
As I recall, the README.txt file in the Sun JRE contains a section on redistribution of the JRE that contains a list of required versus optional files from a legal standpoint.
Also, the 1.3 JREs are smaller than the 1.4 JREs, so if you don't need the 1.4 features, that may be an easy way to save space. For instance, I think the 1.3 JRE distribution file (exe) is under 5 Meg.
Riddhi Joshi
Greenhorn

Joined: Dec 29, 2002
Posts: 21
We are making use of the "Dran N Drop" feature. That makes us use JRE1.4
My company is releasing software next week and I need to fix this problem as soon as I can.
What I am doing right now is, I am trying cut down the number of class files from "rt.jar" to the number of classes that I really need in my program.
I am sure it is a long and manual procedure. However, I have heard that there is a command called "echo" which returns the output as all the class files that are used in the program when the program is loaded. I am not sure how to use this "echo" command. If I get this, my work would be simpler.
Looking forward to hearing from you..
Thank you.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Why not run your application as follows:

This results in a long listing of all classes being loaded by the classloader that loaded YourApplication.class (or jar)
kind regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need some help urgently...