suppala Posted February 10, 2016 Share Posted February 10, 2016 Dear,Can you please confirm can we use jasper reports without JDK. We are getting below error while opening the report when we remove the JDK.com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. java.util.Arrays cannot be resolved to a type value = java.util.Arrays.asList(new java.lang.String[] {}); //$JR_EXPR_ID=0$ <--------------> 2. java.util.Arrays cannot be resolved to a type value = java.util.Arrays.asList(new java.lang.String[] {}); //$JR_EXPR_ID=1$ <--------------> 3. java.util.Arrays cannot be resolved to a type value = java.util.Arrays.asList(new java.lang.String[] {}); //$JR_EXPR_ID=0$ <--------------> 4. java.util.Arrays cannot be resolved to a type value = java.util.Arrays.asList(new java.lang.String[] {}); //$JR_EXPR_ID=1$ <--------------> 5. java.util.Arrays cannot be resolved to a type value = java.util.Arrays.asList(new java.lang.String[] {}); //$JR_EXPR_ID=0$ <--------------> 6. java.util.Arrays cannot be resolved to a type value = java.util.Arrays.asList(new java.lang.String[] {}); //$JR_EXPR_ID=1$ <--------------> 6 errors at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:204) at Regards,U Srikanth. Link to comment Share on other sites More sharing options...
suppala Posted February 10, 2016 Author Share Posted February 10, 2016 I'm using Jasper reports with version: 4.7.0 Link to comment Share on other sites More sharing options...
hozawa Posted February 11, 2016 Share Posted February 11, 2016 To answer you question, JasperReports jar is a Java library. You need Java to use JasperReports jar.However, you're using JasperReports Server and you're just getting an error because you're not using it correctly - the error has nothing to do with missing JDK. Link to comment Share on other sites More sharing options...
marianol Posted February 11, 2016 Share Posted February 11, 2016 Just to confrim from the looks of the question and the error it looks like you are using the JasperReports Library.If you check the documentation you will see (page 2) that the JR library Requires a JDK for report compilation, which based on your error is what you are trying to do. On page 11 of the same manual you will see the different compilers available depending on the java compiler available (JDK,JDT,Jikes, etc.) Unless your reports are dynamically generated there is no need for the App to compile the reports, you can have your reports already compiled (as .jasper files instead of .jrxml). If you do not use report compilation the library does not need to use a JDK.Look in the document linked above in Page 33 "API Overview" the report lifecycle chart. 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