RunJasperReports FAQ

From GTwM

Jump to: navigation, search

Back to main page

The import net cannot be resolved

If you get an error when trying to run RunJasperReports like this:

(at line 4)
      import net.sf.jasperreports.engine.*;
             ^^^
The import net cannot be resolved

it could mean that the your system is set to run a non-Sun Java compiler - JasperReports is incompatible with some other compilers. To fix this, set your environment variables to point to Sun Java. To see what your current JAVA_HOME environment variable is, use

echo $JAVA_HOME

Debian and Ubuntu users have come across this issue.

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file

It's been reported that this error can occur on Java 1.5 systems. The PostgreSQL JDBC driver included in the download only supports Java versions 1.6 and above. The solution is to either upgrade to Java 1.6 or downgrade the JDBC driver


Back to main page

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox