lonkar19nisarga Posted February 28, 2020 Share Posted February 28, 2020 I have a Java application in eclipse where we are using Jasper reports for generating reports. I have modified the jrxml file which needs to be compiled using jaspersoft studio eclipse plugin 6.11.0. I need to compile these reports using older version 3.5.2 to support compatibility with my application. I am setting the path of 3.5.2 Jasper report library while compiling . But when I try to compile the file u get the below error:java -cp C:UsersnlonkarDocumentsjasperreports libraryjasperreports-3.5.2-projectjasperreports-3.5.2*; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlbuildclasses; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibXmlSchema-1.3.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibantlr-2.7.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibaopalliance-1.0.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibasm-5.0.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibasm-commons-5.0.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibaxiom-api-1.2.7.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibaxiom-dom-1.2.7.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibaxiom-impl-1.2.7.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibaxis-1.4.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibaxis2-adb-1.4.1.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibaxis2-kernel-1.4.1.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibbackport-util-concurrent-3.1.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-beanutils-1.8.0.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-chain-1.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-codec-1.3.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-collections-3.2.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-collections-3.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-digester-2.0.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-fileupload-1.3.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-httpclient-3.0.1.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-io-2.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-javaflow-20060411.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-lang-2.4.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-lang3-3.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-logging-1.1.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-logging-api-1.1.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibcommons-validator-1.3.1.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibfreemarker-2.3.22.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibiText-2.0.7.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibjasperreports-2.0.3-applet.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibjasperreports-2.0.3-javaflow.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibjasperreports-2.0.3.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibjavassist-3.11.0.GA.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibjcommon-1.0.12.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibjdt-compiler-3.1.1.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibjox116.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibjxl.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFliblog4j-1.2.15.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibmailapi.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibmockrunner-servlet.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibneethi-2.0.4.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibognl-3.0.21.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibognl-3.0.6.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFliboro-2.0.8.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibpoi-3.0.1-FINAL-20070705.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibserializer.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibslf4j-api-1.7.12.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibsmtp.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibstruts2-core-2.3.34.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibstruts2-dojo-plugin-2.3.34.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibstruts2-jasperreports-plugin-2.3.34.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibstruts2-json-plugin-2.3.34.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibstruts2-tiles-plugin-2.3.34.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibtiles-api-2.2.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibtiles-compat-3.0.1.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibtiles-core-2.2.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibtiles-el-2.2.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibtiles-freemarker-2.2.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibtiles-jsp-2.2.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibtiles-ognl-2.2.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibtiles-servlet-2.2.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibtiles-template-2.2.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibwsdl4j-1.6.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibwstx-asl-3.2.4.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibxmlpull-1.1.3.1.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibxpp3_min-1.1.4c.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibxstream-1.4.2.jar; C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentWEB-INFlibxwork-core-2.3.34.jar; C:apache-tomcat-8.5.23libannotations-api.jar; C:apache-tomcat-8.5.23libcatalina-ant.jar; C:apache-tomcat-8.5.23libcatalina-ha.jar; C:apache-tomcat-8.5.23libcatalina-storeconfig.jar; C:apache-tomcat-8.5.23libcatalina-tribes.jar; C:apache-tomcat-8.5.23libcatalina.jar; C:apache-tomcat-8.5.23libecj-4.6.3.jar; C:apache-tomcat-8.5.23libel-api.jar; C:apache-tomcat-8.5.23libjasper-el.jar; C:apache-tomcat-8.5.23libjasper.jar; C:apache-tomcat-8.5.23libjaspic-api.jar; C:apache-tomcat-8.5.23libjsp-api.jar; C:apache-tomcat-8.5.23libservlet-api.jar; C:apache-tomcat-8.5.23libsqljdbc4.jar; C:apache-tomcat-8.5.23libtomcat-api.jar; C:apache-tomcat-8.5.23libtomcat-coyote.jar; C:apache-tomcat-8.5.23libtomcat-dbcp.jar; C:apache-tomcat-8.5.23libtomcat-i18n-es.jar; C:apache-tomcat-8.5.23libtomcat-i18n-fr.jar; C:apache-tomcat-8.5.23libtomcat-i18n-ja.jar; C:apache-tomcat-8.5.23libtomcat-jdbc.jar; C:apache-tomcat-8.5.23libtomcat-jni.jar; C:apache-tomcat-8.5.23libtomcat-util-scan.jar; C:apache-tomcat-8.5.23libtomcat-util.jar; C:apache-tomcat-8.5.23libtomcat-websocket.jar; C:apache-tomcat-8.5.23libwebsocket-api.jar com.jaspersoft.jasperreports.toolkit.JRCompiler C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentjasperurfStb.jrxml C:UsersnlonkartfsReportingCentralDevelopmentReportingCentral-nlWebContentjasperurfStb.jasper[/code]Error: Could not find or load main class com.jaspersoft.jasperreports.toolkit.JRCompileri am able to view the report using Preview option but compiling gets the error.Can anyone suggest what is going wrong? Link to comment Share on other sites More sharing options...
lonkar19nisarga Posted March 4, 2020 Author Share Posted March 4, 2020 Can anyone please help me to solve this issue? 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