Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem loading jar into Applet

 
Michael Veeck
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day folks.

The scenario I try to implement is the following: I want to start an applet A (a small one) which then loads another jar B (a big one) and starts it.

The code of applet A looks like this:





Now this works quite well, as long as B doesnt do any potential unsecure stuff like accessing System.Properties. If B tries that I get an java.security.AccessControlException: access denied!

This behaviour is normal if B isn't signed, but both jars A and B are signed with the same signature, so somehow the signature of B isnt looked at by the JavaVM.

Anyone knows why the signature of B is disregarded?

Thanks in advance
MVeeck
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic