Re: Applet deployment problem



NickPick wrote:
I'm compiling a JavaApplet which works fine when I run it with
NetBeans. But when I try to start it with a Browser with the generated
HTML file I get error messages and I don't know what went wrong:
thanks

java.lang.NoClassDefFoundError: org/jfree/data/general/PieDataset
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(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)
java.lang.NoClassDefFoundError: org/jfree/data/general/PieDataset
at java.lang.Class.getDeclaredConstructors0(Native Method)
....

Put a Class-Path directive that refers to both the JFreeChart jar files
in the manifest of your jar file. And put those two in the same dir
as your jar file. Then it should work.

Arne
.



Relevant Pages

  • having trouble using signed java applet
    ... Hi i wrote an applet recently and posted a request here for help in allowing ... files that allow me access to functions normally prohibited to java applets. ... here's the steps i took in creating the self signed jar file. ... to test it i put the jar file and html file on there own on my website ...
    (comp.lang.java.programmer)
  • JSObject
    ... I thought JSObject would be a good choice. ... website indicates that the requied jar file is came with 1.3. ... discontinued support for JSObject or do I just need to get the jar from ... I have read that browser support for JSObject isn't consistant from ...
    (comp.lang.java.programmer)
  • RE: HttpListener based app loading Java Applet into html page
    ... If the Html file contains tags to load the jar file, ... -- assumes that the request is directly for the jar file alone. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Java refuses to run JAR
    ... > can't test if a self-created JAR file executes or not. ... > Error messages when i try to run Multivalent20040415.jar: ...
    (comp.lang.java.help)
  • FC3: Java refuses to run JAR
    ... Hi, i'm trying for my first time to use some java-based software, but ... can't test if a self-created JAR file executes or not. ... Error messages when i try to run Multivalent20040415.jar: ...
    (comp.lang.java.help)

Loading