gameness
asked on
Applet Won't Run?
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?
<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?
I would really not try to develop Java for the MS JVM. If you must, write in J#
ASKER
CEHJ,
Noted. Does that means it's not possible?
Noted. Does that means it's not possible?
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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?
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?
Try
javac -target 1.2 -source 1.2 file.java
javac -target 1.2 -source 1.2 file.java
ASKER
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
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
ASKER
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 :)
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 :)
:-)