arthur17 Posted August 18, 2006 Share Posted August 18, 2006 Could any kind person tell me why I got this msg: java.lang.NoClassDefFoundError: org/jfree/chart/axis/ValueAxis I already put the jfreechart jar file to lib and I wrote Code:String jbossPath = SystemPreferences.getPreference("file/jboss.path", "unknown"«»); String path = jbossPath + File.separatorChar+"server" + File.separatorChar + "default" + File.separatorChar + "lib"+ File.separatorChar+ "jfreechart-0.9.21.jar"+File.pathSeparatorChar+jbossPath + File.separatorChar+"server" + File.separatorChar + "default" + File.separatorChar + "lib"+ File.separatorChar+ "iReport.jar"+File.pathSeparatorChar+jbossPath + File.separatorChar+"server" + File.separatorChar + "default" + File.separatorChar + "lib"+ File.separatorChar+ "jasperreports-0.6.0.jar"; System.setProperty("jasper.reports.compile.class.path", path); System.setProperty("java.awt.headless", "true"«»); in my java file The msg is very rediculous after i did those.Any body can tell me wha?Thanks alot Link to comment Share on other sites More sharing options...
giulio Posted August 21, 2006 Share Posted August 21, 2006 Be sure the jar is the same as the one shipped with JasperReports. Giulio Link to comment Share on other sites More sharing options...
arthur17 Posted August 23, 2006 Author Share Posted August 23, 2006 Yes, it was same. but I already solved the problem. Thanks a lot, Giulio Post edited by: arthur17, at: 2006/08/22 19:51 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now