JFreeChart Applet demo

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mallesh

JFreeChart Applet demo

Post by Mallesh » Sat Aug 10, 2002 12:59 pm

Hi,

JFreeCharts is wonderful, I got what I really needed. This is working perfectly in jdk1.4 swing demo. But I need these graphs in Browser. So I tried to run JFreeChartAppletDemo. But it generating following error message :

VM Started: I/O exception while reading: /opt/MALLESH/OtherGraphs/jfreechart-0.9.2/classes/com.jrefinery.chart.demo.JFreeChartAppletDemo (No such file or directory)

I included following jars into CLASSPATH:
export CLASSPATH=jfreechart-0.9.2-demo.jar:jcommon-0.6.4.jar:jfreechart-0.9.2.jar:$CLASSPATH

To run : appletviewer com.jrefinery.chart.demo.JFreeChartAppletDemo

Please help me how i can use in the browser as applet.

Waiting for your help.

Thanking you.

Regards,
Mallesh

Jerzy.Gulczynski

Re: JFreeChart Applet demo

Post by Jerzy.Gulczynski » Sun Aug 11, 2002 11:02 am

There are two ways:
- install jre 1.4xx on client (into your browser)
- download swing to the client
<APPLET
CODEBASE = "./"
CODE = "MyClass"
ARCHIVE = "./My.jar;./swing.jar"
NAME = "TestApplet"
ALIGN = top
>

Jerzy

Mallesh

Re: JFreeChart Applet demo

Post by Mallesh » Tue Aug 13, 2002 10:33 am

Following is the html file. All the included jars are in the current directory.

<html>
<body>
<APPLET
CODEBASE = "./"
CODE = "JFreeChartAppletDemo.class"
ARCHIVE = "./jfreechart-0.9.2-demo.jar;./swing.jar;./jcommon-0.6.4.jar;./jfreechart-0.9.2.jar"
NAME = "TestApplet"
ALIGN = top>
</applet>
</body>
</html>

But still I am getting error message in the Java Console :

java.lang.NullPointerException: trying to call getFile()Ljava/lang/String;
at netscape.applet.AppletClassLoader.grabArchiveFile(AppletClassLoader.java:86)
at netscape.applet.AppletClassLoader.openArchive(AppletClassLoader.java:176)
at netscape.applet.AppletClassLoader.getClassLoader(AppletClassLoader.java:410)
* at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(DerivedAppletFrame.java:411)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:81)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)

Please help me how to go ahead.

Thank you.
-Mallesh

Mallesh

Re: JFreeChart Applet demo

Post by Mallesh » Tue Aug 13, 2002 3:40 pm

Please someone reply me. I am trying to get it done.

Locked