Jump to content
Changes to the Jaspersoft community edition download ×

Eclipse Kepler + JasperStudio 5.6.2 + JDK 1.7 => compile error


wind543

Recommended Posts

Hi,  

    I've installed the Jasper Reports plugin (5.6.2.final) for Eclipse (Kepler), and its default JDK is 1.7. And the four jar-file has generated after re-start Eclipse:

jasperreports-5.6.1.jar

jaspererports-char_themes-5.6.1.jar

jasperreports-fonts-5.6.1.jar

jasperreports-functions-5.6.1.jar

    Next step, I created a simple java application,  a report file (test_A4.jrxml) for testing jasperLibrary. 

  The compile message is:

net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:

C:etesttest_A4_1416984587687_483601.java:2: warning: unmappable character for encoding MS950

 * Generated by JasperReports - 2014/11/26 下�?? 2:49

                                             ^

C:etesttest_A4_1416984587687_483601.java:2: warning: unmappable character for encoding MS950

 * Generated by JasperReports - 2014/11/26 下�?? 2:49

                                              ^

C:etesttest_A4_1416984587687_483601.java:18: cannot access net.sf.jasperreports.engine.fill.JREvaluator

bad class file: C:eclipse-kepler-4.3.2configurationorg.eclipse.osgibundles11961.cplibjasperreports-5.6.1.jar(net/sf/jasperreports/engine/fill/JREvaluator.class)

class file has wrong version 50.0, should be 49.0

Please remove or make sure it appears in the correct subdirectory of the classpath.

public class test_A4_1416984587687_483601 extends JREvaluator

                                                  ^

1 error

2 warnings

 

    at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:204)

    at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:354)

    at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:287)

    at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:572)

 

    at com.skb.JasperTest.main(JasperTest.java:24)

------------------------------------------------------------

   The solution still isn't found after trying for 7 days...Have someone known these problems how to solve ?


1. jasper report file "test_A4.jrxml" has been set  "UTF-8", but the warning "MS950" is occured.


2. jasperreports-5.6.1.jar :  " class file has wrong version 50.0, should be 49.0 " 

     it means : the testing java code must been compiled at JDK 1.5 to tie in  jasperreports-5.6.1.jar


   Aren't they right ?

     But, jasperReports API may support JDK1.5~JDK1.8, it seems un-reasonable.


3. When does the JasperSoft Studio 5.6.2 generate  "jasperreports-5.6.2.jar"  file ?

   (JasperSoft studio 5.6.2 generates jasperreports-5.6.1.jar file....the standalone version is the same, too.)


 
 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...