jpython and jfreechart

Discussion about JFreeChart related to stockmarket charts.
Locked
nilaysaha
Posts: 1
Joined: Fri Jan 04, 2008 7:37 pm

jpython and jfreechart

Post by nilaysaha » Fri Jan 04, 2008 7:44 pm

Hi ,
Has anyone used jfreechart with jython ? i try the following in jython and get errors:
>>> import sys
>>> sys.packageManager.addJarDir('/tmp/jcommon-1.0.12',1)
>>> sys.packageManager.addJarDir('/tmp/jfreechart-1.0.9',1)
>>> from org import jfree
>>> data=jfree.data.general.DefaultPieDataset()
Traceback (innermost last):
File "<console>", line 1, in ?
AttributeError: java package 'org.jfree.data.general' has no attribute 'DefaultPieDataset'

Why do I get attribute error on the module ?

Any clue. Maybe something additional needs to be done to import the jar files to jython ?

Locked