Page 1 of 1

jpython and jfreechart

Posted: Fri Jan 04, 2008 7:44 pm
by nilaysaha
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 ?