wxtwxt Posted September 13, 2007 Share Posted September 13, 2007 ireport error on solaris and fedro redhatsetting:CLASSPATH=/usr/jdk/jdk1.5.0_06/lib/dt.jar:/usr/jdk/jdk1.5.0_06/lib/tools.jar:/usr/iReport-2.0.1/libPATH=/usr/jdk/jdk1.5.0_06/bin:/usr/jdk/jdk1.5.0_06/jre/bin:/usr/iReport-2.0.1/bin:$PATHIREPORT_CLASSPATH=/usr/jdk/jdk1.5.0_06/lib/dt.jar:/usr/jdk/jdk1.5.0_06/lib/tools.jar:/usr/iReport-2.0.1/libexport IREPORT_CLASSPATHexport CLASSPATHexport PATH error: # cd /usr/iReport-2.0.1/bin# bash startup.shException in thread "main" java.lang.NoClassDefFoundError: it/businesslogic/ireport/gui/MainFrame# why?need helpthanks Link to comment Share on other sites More sharing options...
wxtwxt Posted September 14, 2007 Author Share Posted September 14, 2007 need helpanybody help?? I tried mang times but the error also please help i change the seting like this CLASSPATH=/usr/jdk/j2sdk1.4.2_08/lib/dt.jar:/usr/jdk/j2sdk1.4.2_08/lib/tools.jar:/usr/iReport-2.0.1/libPATH=/usr/jdk/j2sdk1.4.2_08/bin:/usr/jdk/j2sdk1.4.2_08/jre/bin:/usr/iReport-2.0.1/bin:$PATHIREPORT_CLASSPATH=/usr/jdk/j2sdk1.4.2_08/lib/dt.jar:/usr/jdk/j2sdk1.4.2_08/lib/tools.jar:/usr/iReport-2.0.1/lib:usr/iReport2.0.1/bin:/usr/iReport-2.0.1/lib/jasperreports-2.0.1.jarIREPORT_HOME=/usr/iReport-2.0.1JAVA_HOME=/usr/jdk/j2sdk1.4.2_08export IREPORT_CLASSPATHexport CLASSPATHexport PATHexport IREPORT_HOMEexport JAVA_HOME but the error is the same: bash startup.shException in thread "main" java.lang.NoClassDefFoundError: it/businesslogic/ireport/gui/MainFrame SOS SOS Link to comment Share on other sites More sharing options...
csbac Posted September 14, 2007 Share Posted September 14, 2007 I can't tell you what your problem is, yet- iReport 2.0.1 needs Java 1.5.0 or later- setting CLASSPATH to anything ...:path/lib does not work, a folder is only searched for class files, jars need to be added manually all of them. Why do you set any classpath and especially IREPORT_CLASSPATH variable before starting the script? Seb. Link to comment Share on other sites More sharing options...
keurvet Posted September 27, 2007 Share Posted September 27, 2007 Try to come back to default settings (I never had to change them) and to start the startup.sh script from the /usr/iReport-2.0.1/bin directory. Another thing I have to do each time I install a new version of IReport is to copy tools.jar from my JDK distribution to the iReport lib directory. Hope that helpsPost edited by: keurvet, at: 2007/09/27 15:49 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