Jump to content
  • Cannot find documentation on supported Java versions


    davidgarratt
    Assigned User teodord
    CategoryGeneral
    Component: 28806
    PriorityHigh
    ReproducibilityAlways
    ResolutionFixed
    SeverityBlock
    StatusResolved
    Versionv6.18.1

    I currently have JasperReports Library 6.18.1 running with Java 11 and although I get a warning about the use of reflective API when compiling the reports from within ANT - it does work. However as everyone is no doubt aware there are a great many jars used by the library and I've been reading various posts about some of these libraries not being able to update at present (POI for example.) I've not been able to determine what causes the warning message. Someone suggested Groovy but my version is already above the suggested version to fix it. My ANT build reports the following.

     

    WARNING: An illegal reflective access operation has occurred

    WARNING: Illegal reflective access by net.sf.jasperreports.engine.util. ClassUtils (file:/Users/dave/Commander4j/workspace/development/b5/lib/jasper/jasperreports-6.18.1. jar) to constructor com.sun.org .apache.xerces.internal.util.XMLGrammarPoolImpl()

    WARNING: Please consider reporting this to the maintainers of net.sf. jasperreports. engine.util. ClassUtils

    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

    WARNING: All illegal access operations will be denied

     

    The bottom line is that I cannot find out anything about Java version support and plans to move dependencies to newer versions to support later versions of Java.

     

    My application uses a number of 3rd party apps and I'm using ANT to compile. The Manifest gives you a good idea of just how difficult it's going to be to determine compatibility with a newer Java and it would really be most useful of the JasperReports Library developers could document their dependencies and Java requirements. I'm sure they must have the information somewhere for their own use.

     

    If anyone can advise how to move forward it would be most appreciated. I have to admit that I know very little about maven and don't feel confident enough to tackle moving my build to that presently.

     

    Manifest-Version: 1.0

    Main-Class: com.commander4j.start.Init

    Class-Path: lib/app/commons-email-1.5.jar

    lib/app/commons-io-2.6.jar

    lib/app/commons-lang-2.6.jar

    lib/app/commons-lang3-3.8.1.jar

    lib/app/commons-math3-3.6.1.jar

    lib/app/commons-text-1.2.jar

    lib/app/jackcess-2.1.9.jar

    lib/app/log4j-1.2.17.jar

    lib/app/opencsv-4.1.jar

    lib/barcode/avalon-framework-4.2.0.jar

    lib/barcode/commons-cli-1.3.1.jar

    lib/barcode/jdom-2.0.6.jar

    lib/barcode/serializer-2.7.2.jar

    lib/cups4j/cups4j-0.7.8.jar

    lib/cups4j/hamcrest-core-1.3.jar

    lib/cups4j/simple-xml-2.7.1.jar

    lib/cups4j/stax-1.2.0.jar

    lib/cups4j/stax-api-1.0.1.jar

    lib/cups4j/xpp3-1.1.3.3.jar

    lib/db/mssql-jdbc-9.2.1.jre11.jar

    lib/db/mysql-connector-java-8.0.26.jar

    lib/db/ojdbc11.jar

    lib/jasper/jasperreports-6.18.1.jar

    lib/jasper/jasperreports-annotation-processors-6.18.1.jar

    lib/jasper/jasperreports-chart-customizers-6.18.1.jar

    lib/jasper/jasperreports-chart-themes-6.18.1.jar

    lib/jasper/jasperreports-custom-visualization-6.18.1.jar

    lib/jasper/jasperreports-fonts-6.18.1.jar

    lib/jasper/jasperreports-functions-6.18.1.jar

    lib/jasper/jasperreports-javaflow-6.18.1.jar

    lib/jasper/jasperreports-metadata-6.18.1.jar

    lib/jasperlib/ant-1.10.11.jar

    lib/jasperlib/antlr-2.7.5.jar

    lib/jasperlib/barbecue-1.5-beta1.jar

    lib/jasperlib/barcode4j-2.1.jar

    lib/jasperlib/batik-anim-1.14.jar

    lib/jasperlib/batik-awt-util-1.14.jar

    lib/jasperlib/batik-bridge-1.14.jar

    lib/jasperlib/batik-constants-1.14.jar

    lib/jasperlib/batik-css-1.14.jar

    lib/jasperlib/batik-dom-1.14.jar

    lib/jasperlib/batik-ext-1.14.jar

    lib/jasperlib/batik-gvt-1.14.jar

    lib/jasperlib/batik-i18n-1.14.jar

    lib/jasperlib/batik-parser-1.14.jar

    lib/jasperlib/batik-script-1.14.jar

    lib/jasperlib/batik-svg-dom-1.14.jar

    lib/jasperlib/batik-svggen-1.14.jar

    lib/jasperlib/batik-transcoder-1.14.jar

    lib/jasperlib/batik-util-1.14.jar

    lib/jasperlib/batik-xml-1.14.jar

    lib/jasperlib/castor-core-1.4.1.jar

    lib/jasperlib/castor-xml-1.4.1.jar

    lib/jasperlib/cdt-java-client-2.0.0.jar

    lib/jasperlib/commons-beanutils-1.9.4.jar

    lib/jasperlib/commons-codec-1.11.jar

    lib/jasperlib/commons-collections-3.2.2.jar

    lib/jasperlib/commons-collections4-4.2.jar

    lib/jasperlib/commons-digester-2.1.jar

    lib/jasperlib/commons-logging-1.2.jar

    lib/jasperlib/commons-pool2-2.4.2.jar

    lib/jasperlib/core-3.4.0.jar

    lib/jasperlib/ecj-4.4.2.jar

    lib/jasperlib/groovy-3.0.7.jar

    lib/jasperlib/groovy-sandbox-1.26-jaspersoft-2.jar

    lib/jasperlib/hibernate-core-5.4.24.Final.jar

    lib/jasperlib/httpclient-4.5.13.jar

    lib/jasperlib/httpcore-4.4.12.jar

    lib/jasperlib/icu4j-57.1.jar

    lib/jasperlib/itext-2.1.7.js9.jar

    lib/jasperlib/jackson-annotations-2.12.2.jar

    lib/jasperlib/jackson-core-2.12.2.jar

    lib/jasperlib/jackson-databind-2.12.2.jar

    lib/jasperlib/javax.persistence-api-2.2.jar

    lib/jasperlib/javax.xml.soap-api-1.4.0.jar

    lib/jasperlib/jcommon-1.0.23.jar

    lib/jasperlib/jfreechart-1.5.0.jar

    lib/jasperlib/log4j-api-2.14.0.jar

    lib/jasperlib/log4j-core-2.14.0.jar

    lib/jasperlib/log4j-jcl-2.14.0.jar

    lib/jasperlib/lucene-analyzers-common-7.3.0.jar

    lib/jasperlib/lucene-core-7.3.0.jar

    lib/jasperlib/lucene-queryparser-7.3.0.jar

    lib/jasperlib/mondrian-3.1.1.12687.jar

    lib/jasperlib/net.tascalate.asmx-7.0.1.jar

    lib/jasperlib/net.tascalate.asmx.analysis-7.0.1.jar

    lib/jasperlib/net.tascalate.asmx.tree-7.0.1.jar

    lib/jasperlib/net.tascalate.javaflow.api-2.6.0.jar

    lib/jasperlib/net.tascalate.javaflow.providers.asm5-2.6.0.jar

    lib/jasperlib/net.tascalate.javaflow.providers.asmx-2.6.0.jar

    lib/jasperlib/net.tascalate.javaflow.spi-2.6.0.jar

    lib/jasperlib/net.tascalate.javaflow.tools.ant-2.6.0.jar

    lib/jasperlib/net.tascalate.javaflow.tools.jar-2.6.0.jar

    lib/jasperlib/olap4j-0.9.7.309-JS-3.jar

    lib/jasperlib/poi-4.1.1.jar

    lib/jasperlib/poi-ooxml-4.1.1.jar

    lib/jasperlib/rhino-1.7.11.jar

    lib/jasperlib/servlet-api-2.4.jar

    lib/jasperlib/slf4j-api-1.7.26.jar

    lib/jasperlib/slf4j-nop-1.7.26.jar

    lib/jasperlib/spring-beans-5.1.4.RELEASE.jar

    lib/jasperlib/spring-core-5.1.4.RELEASE.jar

    lib/jasperlib/velocity-engine-core-2.3.jar

    lib/jasperlib/xalan-2.7.2.jar

    lib/jasperlib/xml-apis-ext-1.3.04.jar

    lib/jasperlib/xmpcore-5.1.3.jar

    lib/jasperlib_aux/asm-all-5.2.jar

    lib/jasperlib_aux/batik-extension-1.14.jar

    lib/jasperlib_aux/batik-gui-util-1.14.jar

    lib/jasperlib_aux/bsh-2.0b6.jar

    lib/jasperlib_aux/joda-time-2.10.2.jar

    lib/jasperlib_aux/xmlgraphics-commons-2.2.jar

    lib/mail/javax.activation-1.2.0.jar

    lib/mail/javax.mail.jar

    lib/serial/jSerialComm-2.7.0.jar

     



    User Feedback

    Recommended Comments

    I've just been looking at that. I have the jasperreports.properties file but I'm struggling to figure out how to add it to the class path in the ant build.xml. I tried adding it as a new path element but it complained that it was not a jar file. I should perhaps have mentioned that I'm not running JasperReports server but instead including it in a Java Swing desktop application.

     

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>

     

     

     

    srcdir="./reports"

    destdir="./reports"

    tempdir="./reports"

    keepjava="false"

    xmlvalidation="true">

     

    Link to comment
    Share on other sites

    OK - using the setting you mentioned and adding the jasperreports.properties file I can suppress the error message when my ANT build.xml compiles my reports.

     

    Going back to my initial concern - is there any guidance as to the support for Java versions > 11 ?

     

    I would have expected a Requirements section to document this somewhere.

     

    Thanks

     

    Dave

    Link to comment
    Share on other sites

    I agree with OP, as we're considering migrating 5000+ users to Jasper from ReportMill & BIRT, but need to determine whether Java 17 supported first..... publishing supported JRE versions seems a small ask from JasperSoft, considering it's intended purpose as an embedded/dependent library.
    Link to comment
    Share on other sites

    Changed Resolution from Open to Fixed

    Changed Status from New to Resolved

    Changed Assigned User from - to @teodord


    The JasperReports Library supports Java 17.The minimum required Java version is Java 1.8.Recent tests indicate it also works with Java 20, except for the Javaflow instrumented variant.Thank you,Teodor
    Link to comment
    Share on other sites


×
×
  • Create New...