• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting an error in my Java Console when trying to load an applet

 
Joyce Hughes
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Getting an error in my Java Console when trying to load an applet from my application.
The error is:

Java Plug-in 1.6.0_11
Using JRE version 1.6.0_11 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\joyce.hughes
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


load: class de.mud.jta.Applet not found.
java.lang.ClassNotFoundException: de.mud.jta.Applet
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://159.71.39.66:8989/icdb/telnet/config/de/mud/jta/Applet.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: de.mud.jta.Applet

Does anyone have any suggestions?
 
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
OK, first question: does the file indicated in the error message exist? (i.e., http://159.71.39.66:8989/icdb/telnet/config/de/mud/jta/Applet.class )

It looks like the browser is expecting your applet to be available as loose class files on the server. If instead it's packed into a JAR file, then maybe your HTML applet tag is broken; it's not correctly telling the browser where that JAR file is.
 
Joyce Hughes
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm still a novice at this. Thanks for the quick reply.

The folder de/mul/ita is not under icdb/telnet
Where would I look for the configurationn of it?
I have a TelnetApplet.class, but no Applet.class
 
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
The HTML file that the applet is supposed to be embedded in will have special HTML to describe how to load the applet (did you create this file?) It might be an APPLET tag or an EMBED tag. If you post that part of the HTML in a reply to this message (be sure to check "Disable HTML in this message" right above the "submit" button!) then we could tell you what's wrong with it.

One thing right off the bat is that it looks as though the HTML says "Applet.class" when it should say TelnetApplet.class (if that is, indeed, the name of the applet class you've got.)
 
Joyce Hughes
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I found out one problem. The jta20.jar was in the wrong place. It needed to be in the telnet\config file. The hcrypto.jar was also in the wrong place. I have moved them to the \config directory, and at least now I get the telnet window.

Now I am getting the following in the telnet window:

Sorry, Culd not connect: java.net.ConnectException: Connection refused: connect

Your are either behind a firewall or the Java Telnet Applet has a broken configuration.

If unsure, please contact the administrator of the web page.
 
Joyce Hughes
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, we finally resolved the issue. We needed to run the batch file to get the relay running. Thank you for all you help and Happy New Year!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic