kurky17 Posted June 11, 2010 Share Posted June 11, 2010 Hi, I'm very new to JasperReports and Java and I'm currently following the book Jasper Reports for Java developers. I created a FirstReportCompile.java which is suppose to compile FirstReport.jrxml. WHen I try to compile the java file like this:# javac FirstReportCompile.javaIt returns the ff errors:1. ERROR in FirstReportCompile.java (at line 2) import net.sf.jasperreports.engine.JRException; ^^^^^^The import net.sf cannot be resolved----------2. ERROR in FirstReportCompile.java (at line 3) import net.sf.jasperreports.engine.JasperCompileManager; ^^^^^^The import net.sf cannot be resolved----------3. ERROR in FirstReportCompile.java (at line 11) JasperCompileManager.compileReportToFile( ^^^^^^^^^^^^^^^^^^^^JasperCompileManager cannot be resolved----------4. ERROR in FirstReportCompile.java (at line 15) catch (JRException e) ^^^^^^^^^^^JRException cannot be resolved to a type----------4 problems (4 errors) Anybody who can help? This might be a problem with installation. I am on Fedora 12, running JDK 1.6.0_20.My jasperreports directory is: /opt/jasperreportsMy jasper project files directory is: /home/username/JasperFiles/firstMy java dir is: /usr/java/jkd1.6.0_20 Thanks,Michelle Link to comment Share on other sites More sharing options...
kurky17 Posted June 14, 2010 Author Share Posted June 14, 2010 Can anybody who's running JasperReports on Linux paste his/her environment variables settings here? I just want to have an idea. Thanks 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