[thelist] Java... error when Sun JRE is not installed.

Raditha Dissanayake jabber at raditha.com
Thu Nov 20 16:18:49 CST 2003


Hi,

Though microsoft calls it java is it really java? I don't see anything 
wrong wtih your applet code but suggest that you look at the object tag 
instead.

Joshua Olson wrote:

>Hello,
>
>I am building a very simple Java applet that exposes public methods that I'm
>trying to execute via JavaScript.  When I run the applet on a client that
>has Sun JRE installed it works fine.  When it's using MS's Java Viewer on a
>machine without Sun's JRE I am seeing the following error in the java
>console:
>
>java.lang.NoClassDefFoundError
>java.lang.ClassNotFoundException: MyClass
> at com/ms/vm/loader/URLClassLoader.loadClass
> at com/ms/vm/loader/URLClassLoader.loadClass
> at com/ms/applet/AppletPanel.securedClassLoad
> at com/ms/applet/AppletPanel.processSentEvent
> at com/ms/applet/AppletPanel.processSentEvent
> at com/ms/applet/AppletPanel.run
> at java/lang/Thread.run
>
>Any ideas how to make the code cross-platform compatible.
>
>FYI, I'm including the applet using the following code:
>
><applet name="MyClassApplet" id="MyClassApplet" width="1000" height="1000"
>code="MyClass.class">
>
>
>Your browser is not able to run Java applets. This is probably due to having
>Java disabled in your browser settings.
>
>
></applet>
>
>I'm executing the public method using the following JS:
>
>document.getElementById("MyClassApplet").methodName();
>
>This works great with Sun's JRE, not at all using MS's viewer.
>
>Thanks in advance for the help.
>
><><><><><><><><><><>
>Joshua Olson
>Web Application Engineer
>WAE Tech Inc.
>http://www.waetech.com
>706.210.0168
>
>  
>


-- 
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/         | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.




More information about the thelist mailing list