Solved

Applet Won't Run?

Posted on 2007-11-28
10
250 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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
 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate example for saving data 19 55
JavaFX TableView not displaying correctly 3 58
Convert from a json string array to a Java object 3 53
java example issue 5 25
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 This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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…
This video teaches viewers about errors in exception handling.

832 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