Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SLJ

macrumors regular
Original poster
Jul 23, 2003
230
2
Australia
i got the follow java applet errors when I run this on my MBP

Java Plug-in 1.5.0
Using JRE version 1.5.0_05 Java HotSpot(TM) Client VM User home directory = /Users/al74934


----------------------------------------------------
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
p: reload proxy configuration
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 hob.hltc.JHLTCap01.class not found.
java.lang.ClassNotFoundException: hob.hltc.JHLTCap01.class
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:599)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:712)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1794)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:641)
at sun.applet.AppletPanel.run(AppletPanel.java:320)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:271)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
... 9 more
Exception in thread "Thread-16" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError
(GrayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletException(AppletViewer.java:1968)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:646)
at sun.applet.AppletPanel.run(AppletPanel.java:320)
at java.lang.Thread.run(Thread.java:613)
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError
(GrayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletStatus(AppletViewer.java:1898)
at sun.applet.AppletPanel.run(AppletPanel.java:365)
at java.lang.Thread.run(Thread.java:613)
Exception in thread "thread applet-hob.hltc.JHLTCap01.class"
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError
(GrayBoxPainter.java:153)
at sun.plugin.AppletViewer.showAppletException(AppletViewer.java:1968)
at sun.applet.AppletPanel.run(AppletPanel.java:529)
at java.lang.Thread.run(Thread.java:613)
(Tue Mar 21 08:48:41 HKT 2006)[Thread-12] Java Vendor: Apple Computer, Inc. Java Version: 1.5.0_05 (Tue Mar 21 08:48:41 HKT 2006)[Thread-12] Register applet: detectVM [panel0,0,0,0x0,invalid,layout=java.awt.FlowLayout]

when I run the same applet on my 12" Powerbook Rev.A with Java runtime 1.4.2, no issues.

my question is, does java applet run directly or under rosetta? I have tried both Java 1.4.2 and 1.5.x on MPB and got the same error.
 

cbiffle

macrumors member
Jun 19, 2005
40
0
Tempe, AZ
Not MBP-specific...

The applet is dying because it can't find a class -- specifically, a class named hob.hltc.JHLTCap01.

That it finds the class on your PPC machine is suspicious...it implies that the applet is doing something platform-specific. You might try downloading the applet and using the Applet Launcher on your Mac to view it directly.

If it fails, set Applet Launcher (in its Info pane) to run in Rosetta and try again.

But again, this is suspicious. Make sure you trust the applet.
 

therevolution

macrumors 6502
May 12, 2003
468
0
No, I don't think it's a PPC/Intel problem. Look a little farther down and you'll see:

Caused by: java.io.IOException: open HTTP connection failed.

It looks like an internet connection issue. Are you able to view web pages at the time you try to run the applet? Are you behind a proxy server?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.