Solved

Applet Won't Run?

Posted on 2007-11-28
10
227 Views
Last Modified: 2010-03-30
I am trying to get an applet to run in IE using MSJVM...  the html for the page is:

<HTML>
<HEAD>
</HEAD>
<BODY>
<APPLET code="MouseEvents.class" width=100% height=100%>
</APPLET>
</BODY>
</HTML>

This works fine when I use Sun's JRE with IE... but when I run it using MSJVM I get the following error:
load: Class MouseEvents not found.

Any idea how I can get this to run with MSJVM instead of Sun's JRE?
0
Comment
Question by:gameness
  • 5
  • 4
10 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 20366772
I would really not try to develop Java for the MS JVM. If you must, write in J#
0
 

Author Comment

by:gameness
ID: 20366808
CEHJ,

Noted.  Does that means it's not possible?  
0
 
LVL 23

Expert Comment

by:rama_krishna580
ID: 20366915
I guess because of some of the limited security problems...
Although the MSJVM may still function after December 31, 2007, it will not be supported. If a security issue were to arise after that date, the MSJVM may become unsafe to use. Microsoft recommends that customers who continue to use the MSJVM after December 31, 2007, lock down Internet Explorer security zones so that the MSJVM works only with trusted sites.
http://www.microsoft.com/mscorp/java/faq.mspx

R.K
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 20366923
Well it would be tricky. It would be going byMS 'Java'  bicycle instead of Sun Java Rolls Royce. You'd need to confine yourself to Java 1.1 and compile it with a 1.1 compiler. You just might get away with compiling to target 1.2 but i'm not sure
0
 

Author Comment

by:gameness
ID: 20367157
CEHJ,

That's what I'm afraid of.  I downloaded J# 2005 Express, but have no idea how to convert the Applet code to J# LOL.  I tried compiling target 1.2 (javac file.java -target 1.2) and got:
"target release 1.2 conflicts with default source release 1.5"

Any idea where I can get a 1.1 compiler?
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 86

Expert Comment

by:CEHJ
ID: 20367275
Try

javac -target 1.2 -source 1.2 file.java
0
 

Author Comment

by:gameness
ID: 20367302
CEHJ,

That created the .CLASS file fine, but still gives the same error when trying to run under MSJVM (of course, it runs perfectly on Sun JRE).

I wish we could just get rid of MSJVM, but we're using some OLD apps that mess up when we run under Sun :(

Is my HTML correct?  Could it be something that simple?  Doubtful, but I have to ask LOL
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20367379
0
 

Author Comment

by:gameness
ID: 20367433
CEHJ,

I actually found an older version of javac in one of our old Oracle dirs and compiled.  It works on MSJVM now.  Thanks for your help :)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 20367463
:-)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Enhanced For loop vs ForEach Loop 4 54
java set up 1 46
Unable to start eclipse ? 17 82
Java Timer (static) 9 10
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

708 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

16 Experts available now in Live!

Get 1:1 Help Now