The Artima Developer Community
Sponsored Link

Java Answers Forum
HELP! Granting Permission to an applet in a JSP

1 reply on 1 page. Most recent reply: Mar 16, 2004 4:39 AM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
silly ivy

Posts: 7
Nickname: akane
Registered: Mar, 2004

HELP! Granting Permission to an applet in a JSP Posted: Mar 15, 2004 7:53 AM
Reply to this message Reply
Advertisement
I created an applet.

and i saved it in C:\Apache tomcat 4.0\webapps\root\Compiler.

My applet uses a java code that invokes Runtime.getRuntime().exec("c:\\j2sdk1.4.0_01\\bin\\javac -verbose file.java").

When I run the applet inside c:\\j2sdk1.4.0_01\\bin, the java code works but when I placed it to be a JSP.. I get this error...
ERROR: java.security.AccessControlException: access denied(java.io.FilePermission C:\\j2sdk1.4.0_01\\bin\\javac execute).

My applet cannot access files from my local computer. Why is that happening? How could I grant permission for my applet so that it could call c:\\j2sdk1.4.0_01\\bin\\javac.exe. I am an amateur when it comes to java programming.. I serious ly need help..


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: HELP! Granting Permission to an applet in a JSP Posted: Mar 16, 2004 4:39 AM
Reply to this message Reply
http://java.sun.com/sfaq/

Flat View: This topic has 1 reply on 1 page
Topic: Diff b/w prepare statement and prepare statement Previous Topic   Next Topic Topic: Class with private constructor

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use