Solved

Browsers erros and the source and meaning

Posted on 1998-10-21
4
264 Views
Last Modified: 2012-05-04
SDK 1.1.7
Development Platform: Win95
Deployment PLatform: Win NT4 Server

When I run my java applet, on applet viewer, it runs fine, it also runs fine in my browser and other poeples browsers. Some poeple, howvere get the following errors: Could you please explain their source, and if possible a solution to them:

in Internet Explorer
I get: exception: java.lang.SecurityException

in NS4
I get: Applet cant start:class Iforager not found
then if I try to reload
I get: Applet cant start: error.java.lang.ClassFormatError. Class alreadyloaded

IN NS3
I get: Applet cant start:class Iforager got a security violation: method verification error


Nniol
0
Comment
Question by:Nniol
4 Comments
 
LVL 5

Expert Comment

by:msmolyak
ID: 1226107
It won't run in NS 3 since it does not support JDK 1.1 (it encountered a method it does not recognize).

In NS 4 and IE 4 it would help if you open the Java console, copied an entire error message from there and post it here.
0
 
LVL 1

Expert Comment

by:mco
ID: 1226108
In NS4, open the Java console BEFORE you load the applet, then enter there '9'
(the highest debug level), then load the applet.
This will result in a lot of info being output to the console, including each class that is
loaded (as in java -verbose). You can then see exactly which class is causing the problem.

0
 
LVL 4

Expert Comment

by:rembo
ID: 1226109
Are you trying to connect to a server other than the one from which your applet was loaded?  It is possible to do this from the appletviewer, but not from a browser.

-Tony

0
 

Accepted Solution

by:
ahannink earned 150 total points
ID: 1226110
It look likes you want to do something in a browser environment which is not allowed. Browsers have much more security rules then the appletviewer. If you want to do such actions there are a few options. You can sign the code. Then you can do the same things as in the appletviewer. However when you run the applet in the browser you have to set some security privileges. IN Netscape you have to use PrivilegeManager.getPrivilegeManager() and PrivilegeManager.enablePrivilege(String);

for IE use the assertPermission method.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
topping1 challenge 7 72
ArrayIndexOutOfBoundException 9 67
JList custom Cell Renderer refresh 15 53
Cipher Configuration on Apache HTTPD 4 50
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now