This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Can jsdk.jar and rt.jar be merged together? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can jsdk.jar and rt.jar be merged together?" Watch "Can jsdk.jar and rt.jar be merged together?" New topic
Author

Can jsdk.jar and rt.jar be merged together?

mike nu
Ranch Hand

Joined: Mar 11, 2001
Posts: 63
Hi there,
I have a question about the jsdk.jar file. When I compile a servlet, I need to set classpath to this file. I tried this way, but it didn't work. So I tried to merge this file with rt.jar file. What I done is as follows:
1. extract files in rt.jar, using jar xf rt.jar
2. extract files in jsdk.jar
3. add contents in javax folder of jsdk.jar to the javax folder of rt.jar
4. add contents in sun folder of jsdk.jar to the sun folder of rt.jar
5. make a new rt.jar file using jar cf rt.jar javax <folders>
Is this correct way? What I found is the old rt.jar file is 12812 KB, my new rt.jar file is only 6873 KB.
Can anyone told me is this the way feasible? Or how to do it?
Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can jsdk.jar and rt.jar be merged together?
 
Similar Threads
Problem about running jar file from netbean dist directory
reducing the size of rt.jar
Proper Jar procedures?
Need to write ArrayList class & Iterator interface in jdk1.1.8
How to set up JSDK2.1 server