• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic