• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Load resources from jar file located within a jar

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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: 25669
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic