|
-
Appletviewer cannot initialized
I already compiled, run the program..and it's succesfully done. But when i try to preview using appletviewer, the error below appeared in my prompt.
How to solve the matters below?Thank you
C:\j2sdk1.4.2_10\bin>java HelloWorldApp
Hello World!
C:\j2sdk1.4.2_10\bin>appletviewer HelloWorldApp.html
load: HelloWorldApp.class is not public or has no public constructor.
java.lang.IllegalAccessException: Class sun.applet.AppletPanel can not access a
member of class HelloWorldApp with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
at java.lang.Class.newInstance0(Class.java:302)
at java.lang.Class.newInstance(Class.java:261)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:619)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:548)
at sun.applet.AppletPanel.run(AppletPanel.java:299)
at java.lang.Thread.run(Thread.java:534)
Similar Threads
-
Replies: 4
Last Post: 02-13-2006, 08:33 PM
-
Replies: 2
Last Post: 02-22-2005, 04:33 PM
-
By raj74 in forum ASP.NET
Replies: 1
Last Post: 12-09-2002, 03:27 PM
-
By Elmosca in forum ASP.NET
Replies: 1
Last Post: 09-16-2002, 09:53 AM
-
By Samuel Tang in forum Java
Replies: 2
Last Post: 10-29-2001, 03:46 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks