Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet using Apache on XP - not loading on remote host

 
Paul Darby
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the Oval.class in the same directory as Oval.html, and can it be read from a remote host?
 
Paul Darby
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic