Applet compiles, doesn't run in Ff

trying to make an applet, it compiles with no errors in netbeans but .

Page 1 of 1

1 Replies - 1109 Views - Last Post: 17 February 2007 - 02:10 PM Rate Topic: -----

#1 schrizsz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 17-February 07

Applet compiles, doesn't run in Ff

Posted 17 February 2007 - 01:12 PM

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...

Is This A Good Question/Topic? 0
  • +

Replies To: Applet compiles, doesn't run in Ff

#2 GWatt  Icon User is offline

  • member icon

Reputation: 278
  • View blog
  • Posts: 3,078
  • Joined: 01-December 05

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1