• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strange applet loading problem

 
steve weatherly
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a program that I'm trying to get running on my website. It works just fine for me, but when anyone else tries to look at it all they get is a gray box. The applet uses ONLY AWT classes, and I am FTPing the class files to the website using binary mode. Also, I am positive that the path is correct and that the class named in the HTML file matches perfectly (I did pay attention to case)... I tried installing Sun's Virtual Machine on one of the computers that wasn't working and it didn't make a difference.
So I ran a little test, I went to java's website on the computer that wasn't working, got a test applet that DID work on java.com's server. I downloaded the source code, compiled it using Sun's commandline compiler (javac) .. then copied the exact same HTML file java.com used to run the html on their site.. so now I (should) have an exact replica of the working applet from java.com. However, the applet simply shows a gray box when loaded from my website (except when I try to run it from my computer). The company that hosts my site said there is no reason on their end for an applet not to work from my site.
So to summarize briefly:
The applet that would run on java.com won't run on anyone's computer but my own when installed on my website.
WHAT THE HECK IS GOING ON??? Any ideas are most appreciated, thanks.
 
Joe Ess
Bartender
Posts: 9337
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried looking at the java console for whatever VM/browser combination you are using?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're probably compiling with JDK 1.4, but trying to run with older JVMs ( especially Microsoft's ancient one). I believe you can pass the "-target 1.1" switch to the JDK 1.4 compiler to get it to generate compatible class files.
 
steve weatherly
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the -target 1.1 worked.. thank you very much for your help!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic