[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Signed Applet

Posted on 2004-11-09
13
Medium Priority
?
319 Views
Last Modified: 2008-03-04
Hi,


First, I am facing this problem of SecurityException.  And I realize it's because my applet is not signed applet...correct me if I'm wrong...as I search through the net and I am still not understand well.  Now I am wondering how can I write an applet which can be acceptable for different browser?  I notice that there are different ways to do this for different browser, such as, Netscape and IE.  Is there a way I can make my applet work for all browser?  If so, how can I do this?  Any example?

Also, I would like to know whether I need to change my codes of "index.html" to make this work.

Finally, not sure why I got this exception "java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)" when I tried to close my applet...what's wrong?


Xenia

0
Comment
Question by:xenia27
  • 7
  • 4
  • 2
13 Comments
 
LVL 92

Expert Comment

by:objects
ID: 12541700

If its a Java2 applet then there is one way to sign it for all browsers. Is this the case?
No change needed to html
0
 
LVL 92

Accepted Solution

by:
objects earned 2000 total points
ID: 12541728
0
 

Author Comment

by:xenia27
ID: 12541749
OK...let me make sure my problem...if I got this SecurityException, then, that means I need to sign my applet, right? @@
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 92

Expert Comment

by:objects
ID: 12541790
actually looking at it, it may just be that you are trying to call System.exit() in your applet.
Applets cannot do that.
0
 

Author Comment

by:xenia27
ID: 12541818
so if I call some methods which applets cannot do will also cause SecurityException?  What if SecurityException with "access denied"???  >"<  Getting so confused with all these signed applets and security exception...
0
 
LVL 92

Expert Comment

by:objects
ID: 12541830
here are some of the things unsigned applets cannot do
http://java.sun.com/docs/books/tutorial/applet/practical/security.html
0
 
LVL 92

Expert Comment

by:objects
ID: 12541841
the stack trace for the exception is also useful for determining what line caused the error
0
 
LVL 92

Expert Comment

by:objects
ID: 12541846
> I tried to close my applet...what's wrong?


you cannot close applets, they are embedded in the browser page.
they keep running until the page is unloaded.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 12541929
>> I tried to close my applet...what's wrong?

Was it running in Appletviewer and you tried to close that?
0
 

Author Comment

by:xenia27
ID: 12552576
OK...I see why I have error message when I tried to close my applet...I cannot close any applets...>"<...
OK...try to figure out what's wrong with SecurityException (access denied)...
0
 
LVL 92

Expert Comment

by:objects
ID: 12552795
thats just saying access to that method is denieed.
0
 

Author Comment

by:xenia27
ID: 12552993
OK....got what's wrong with my codes...>"<...my mistake...
Thanks for your helps~
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 12553809
What was wrong ;-) ?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month17 days, 18 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question