Welcome to Dream.In.Code
Become a Java Expert!

Join 149,789 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 2,793 people online right now. Registration is fast and FREE... Join Now!




Applet compiles, doesn't run in Ff

 
Reply to this topicStart new topic

Applet compiles, doesn't run in Ff, trying to make an applet, it compiles with no errors in netbeans but .

schrizsz
17 Feb, 2007 - 12:12 PM
Post #1

New D.I.C Head
*

Joined: 17 Feb, 2007
Posts: 1


My Contributions
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...
User is offlineProfile CardPM
+Quote Post

GWatt
RE: Applet Compiles, Doesn't Run In Ff
17 Feb, 2007 - 01:10 PM
Post #2

human inside
Group Icon

Joined: 1 Dec, 2005
Posts: 2,356



Thanked: 31 times
Dream Kudos: 500
My Contributions
Could you post your code, including the html. Also, please enclose all code in the code tags.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 07:21AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month