DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2004
    Posts
    1

    Applet won't work

    I have a applet on a web page that works fine with an older IE browser, but it won't work with foxfire and Java plug-in. All I get is a red "x" in the box.If I pull up the Java console it says something about not being legal. I don't know but I think It has something to do with IE not using Java, they have their own system. I think they had some trouble with Java over this.

    Here is the page that has the applet.
    http;//geocities.com/hwitmyer/page74.html
    You can have a new life!
    http://im4truth.com

  2. #2
    Join Date
    Aug 2003
    Posts
    313
    If you use Java 1.4, go into the control panel and there should be a category that says Java Plug-in. Open that up and on the "Advanced" tab, make sure that a Sun JRE or SDK is selected and not the Microsoft one.
    ~evlich

  3. #3
    Join Date
    Aug 2003
    Posts
    313
    When I open your page, I also cannot view the applet. But my console gives this error:
    Code:
    load: Particles.class is not public or has no public constructor.
    
    java.lang.IllegalAccessException: Class sun.applet.AppletPanel can not access a member of class Particles 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:617)
    
    	at sun.plugin.AppletViewer.createApplet(Unknown Source)
    
    	at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
    
    	at sun.applet.AppletPanel.run(AppletPanel.java:298)
    
    	at java.lang.Thread.run(Thread.java:534)
    This looks like a scoping error of some sort, although I am not sure.
    ~evlich

  4. #4
    Join Date
    Feb 2004
    Posts
    808
    IE reports the same thing; fix your code (it's goosed)
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links