• 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

Load resources from jar file located within a jar

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I dont know whether this is the right thread to put this question up or not. If not, Admin - please move this query to the right thread.

Im trying to load an applet using Object tag in a jsp. Applet is located in a jar and the required resources for that applet are located in a single jar. The resources jar contains 10 jars approx. required to load the applet. I was able to load the applet if i give all the jars. but was unsuccessful if i make all the resources in to single jar. Here is the code sample that is working




This code is not working


help me.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't access resources which are inside a jar which itself is inside a jar. Not unless you use a specialized classloader which understands that setup -- and using classloaders other than the system classloader would require you to sign your applet.

Since you already have the solution -- don't put your jars inside a jar -- there isn't much more to be said.
 
reply
    Bookmark Topic Watch Topic
  • New Topic