Solved

Applet Won't Run?

Posted on 2007-11-28
10
242 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Should localization be done inside spring controller 5 26
javap bin 2 34
reverse digits of a number using for loop 5 41
pagenation logic how it is working in my code 1 30
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

773 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