This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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

applet security exception

 
Ranch Hand
Posts: 1907
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to run the applet(JApplet) from browser.I am using NetBeans hence including "swing-layout-1.0.3.jar". From NetBeans I am able to run the applet.But in browser,I am getting an exception. In HTML, I am writing this-

I am getting the following exception-

Do I need to change java.policy file in JRE directory? If yes, what should I add in it?

Thanks
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's probably easier to sign the applet, especially if you expect other people to use it as well. See http://faq.javaranch.com/java/HowCanAnAppletReadFilesOnTheLocalFileSystem for more information on both approaches; it also contains an example of the PropertyPermission required here.
 
Arjun Shastry
Ranch Hand
Posts: 1907
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Using keytool and jarsigner command I created keystore and certificate and was able to create Signed applet.
But when I run the applet in the browser, I am getting the same error-

I have set the contents of java.policy (jre/lib/security directory) like this-


 
Arjun Shastry
Ranch Hand
Posts: 1907
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem was with native implementation(of Tibco) than permission of Applet.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic