As said it compiles in Netbeans, I make an html using the applet, start it but it says failed loading applet and Firefox java console showed:
-|-|-|-|-|
Java Plug-in 1.5.0_10
Using JRE version 1.5.0_10 Java HotSpot Client VM
User home directory = C:\Documents and Settings\kalev
----------------------------------------------------
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: Wordroller.class is not public or has no public constructor.
java.lang.IllegalAccessException: Class sun.applet.AppletPanel can not access a member of class Wordroller with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
-|-|-|-|-|-|-|-|-|-|
I am out of thoughts as this is my first applet... I tried making all the int -s public, it didn't work :(. Howerver i hope this is a common starters mistake and someone can help me, i would really be glad...
Applet compiles, doesn't run in Fftrying to make an applet, it compiles with no errors in netbeans but .
Page 1 of 1
1 Replies - 1478 Views - Last Post: 17 February 2007 - 02:10 PM
Replies To: Applet compiles, doesn't run in Ff
#2
Re: Applet compiles, doesn't run in Ff
Posted 17 February 2007 - 02:10 PM
Could you post your code, including the html. Also, please enclose all code in the code tags.
Page 1 of 1