Jump to content
Changes to the Jaspersoft community edition download ×

Jasper without JDK(P0)


suppala

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...