PDA

View Full Version : Compiling Errors



remarde78
03-03-2006, 08:26 AM
Hi,

I'm trying to build the project from cvs sources in Eclipse (the cvs command to get the sources was " cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/pentaho co -P pentaho"), but I keep getting errors :

compile:
[javac] Compiling 312 source files to C:\\Outils\\cvs\\pentaho\\build\\pentaho-classes
[javac] C:\\Outils\\cvs\\pentaho\\server\\pentaho\\src\\org\\hibernate\\connection\\DBCPConnectionProvider.java:18: cannot access java.io.PrintWriter
[javac] bad class file: C:\\Program Files\\Java\\jre1.5.0_06\\lib\\rt.jar(java/io/PrintWriter.class)
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] import java.io.PrintWriter;
[javac] ^
[javac] 1 error

BUILD FAILED

Does anyone have an idea?

I've another question:
What is the good Eclipse configuration to build or modify our own solution (java build path with libraries and order, Plugins,...) ?

Regards,

mbatchelor
03-03-2006, 09:01 AM
Hi there,

Based on the error I see, it looks like you're building in eclipse with JDK 1.4.x, but you're pointing to the Java 1.5 JRE. That's a very bad thing. You need to be consistent.

Go to Installed JREs in eclipse, and make sure you've added the 1.5 JRE, and select that as the default one to use in eclipse. That should solve your troubles.

Take care,

Marc