Solved

Applets in Symmantec Cafe and Navigator

Posted on 1998-01-07
7
220 Views
Last Modified: 2012-05-04
I am a beginner. I am at present using Symmentac's Visual Cafe for Java, Prof. dev. ed. 2.0.
When I try to run a simple applet (or run the example applet accompanying The Cafe) in Netscape Navigator Gold 3.01, I get the same error message:
APPLET CAN'T START: CLASS BUTTONTESTAPPLET GOT A SECURITY VIOLATION: METHOD VERIFICATION ERROR.
I have heard that Netscape Navigator doesn't support the latest Java versions. What can I do to instruct the Java compiler to create code which my browser can understand?
Any other suggestions would be welcome...
I should add that the applet works fine in the Symmantec Cafe's workspace.
0
Comment
Question by:boomerang061797
  • 3
  • 2
  • 2
7 Comments
 

Author Comment

by:boomerang061797
ID: 1232009
Edited text of question
0
 
LVL 32

Expert Comment

by:jhance
ID: 1232010
Be sure you set up to generate code for JDK 1.01 and not JDK 1.1.  Navigator 3.01 only support JDK 1.01.  I'd suspect that it in some sort of properties or compile options menu.
0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1232011
It's JDK 1.0.2 to be exact.
0
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.

 
LVL 32

Accepted Solution

by:
jhance earned 70 total points
ID: 1232012
In that case your applet is doing something that violates the security model in Navigator.  When running in the Cafe appletviewer, the applet can do anything.  Inside Navigator, the "Java Sandbox" is in effect and you are trying to do something illegal.
0
 

Author Comment

by:boomerang061797
ID: 1232013
I'm having trouble finding exactly how to change the compiler options to generate 1.0.1/1.0.2 code. There is little information in the online help files. Any suggestions?
0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1232014
I am afraid VC 2.0 does not support JDK 1.0.x code. You can either use Symantec Cafe 1.8 which allows you to switch between JDK 1.1.x and 1.0.x (you have to do it outside of the environment though by running a batch file which moves files around). Or you can use JDK 1.0.2 to do the compiling.  You might have a problem however compiling code created in VC 2.0 since that environment is targeted for JDK 1.1. (For example when you visually represent component interacion the code that's generated is JDK 1.1 specific).
0
 
LVL 5

Expert Comment

by:msmolyak
ID: 1232015
The better option is of course to get the lates version of Navigator (4.0.4) and forget about JDK 1.0.
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
Application launch issue with Apache Tomcat 5 24
Exception after setting jdbc session management 2 52
eclipse compiler vs Installed JREs option 3 77
eclipse formatting 6 73
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

861 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

24 Experts available now in Live!

Get 1:1 Help Now