Solved

Applet Won't Run?

Posted on 2007-11-28
10
235 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
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 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

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
Python Assistance 7 73
sites similar to codingbat to improve coding hanson skills 3 41
JavaScript/Java - Changing an image background color 4 56
Apps blocked by Java 9 64
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.

863 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

26 Experts available now in Live!

Get 1:1 Help Now