This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Applet using Apache on XP - not loading on remote host

 
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
 
Ranch Hand
Posts: 2410
  • 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.
 
Bras cause cancer. And tiny ads:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic