aspose file tools*
The moose likes Applets and the fly likes Applet using Apache on XP - not loading  on remote host Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet using Apache on XP - not loading  on remote host" Watch "Applet using Apache on XP - not loading  on remote host" New topic
Author

Applet using Apache on XP - not loading on remote host

Paul Darby
Greenhorn

Joined: Feb 23, 2006
Posts: 4
Hi

First of all, thanks for any attention you can give to my problem.

I've had problems running applets from a remote host on my web server (using IE 6.0). I'm running an XP machine with apache http web server installed (as far as I'm aware I don't need Tomcat simply for applets). All of my applets run perfectly fine as localhost and as URL from my own machine, and there is no problem loading the html on any remote machine.

I've tried to make this work with the simplest of applets: One that just draws a few circles. When I try to run remotely using http://ipaddress/applets/Oval.html (Oval.class in same directory) I simply get a grey box where the applet should be and in the status bar "load: class Oval not found" appears.

This is the code in the html (as I say this works ok when I use the URL in IE from my own machine):

<html>
<head><title>Another applet!</title></head>
<body>
<applet code = "Oval" height = "600" width = "800"></applet>

</body>
</html>

If anyone can assist, I would really appreciate it.

Many, many thanks
Paul


<i>I shall achieve in time (W.S. Gilbert)</i>
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Is the Oval.class in the same directory as Oval.html, and can it be read from a remote host?
Paul Darby
Greenhorn

Joined: Feb 23, 2006
Posts: 4
Oval.html is in the same directory as Oval.class. Oval.class is loaded when run from a browser locally. It is not when loaded from a browser remotely. Instead, the status bar says "load: class Oval not found".
Paul Darby
Greenhorn

Joined: Feb 23, 2006
Posts: 4
...seems this is a browser/ applet issue. The applet happens on IE without the "use JRE 1.5.06 <applet>" check box checked. Other applets seem to run without this. Could this be due to the version of java they were compiled with or could this be something else...? Anyone able to help?
Paul Darby
Greenhorn

Joined: Feb 23, 2006
Posts: 4
I haven't been able to get to the bottom of this. I tried compiling using an older version of the jdk but it made no difference (jdk 1.2.2) Is anyone able to advise why my applets don't run in IE without the Sun JRE setting checked? Most other applets I see seem to be abe to load up without it. I think they're just using the MS JVM but I'm not sure.... (pls see details above for actual error if you feel you may can/ want to assist)

Many thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet using Apache on XP - not loading on remote host