This is what happens when you compile using Java 1.5. Cassandra
requires Java 1.6+. You can either setup JAVA_HOME or setup your
system preferences to point to a supported version of Java.
Michael
On Aug 8, 2009, at 5:55 PM, Curt Micol <[email protected]> wrote:
I decided to update to latest trunk, and run tests (had only a couple
of minutes to tinker on the laptop), I got this:
[dragn:~/src/svn/cassandra]$ ant test
Buildfile: build.xml
build-subprojects:
init:
[mkdir] Created dir: /Users/cbm/src/svn/cassandra/build/classes
[mkdir] Created dir:
/Users/cbm/src/svn/cassandra/build/test/classes
[mkdir] Created dir: /Users/cbm/src/svn/cassandra/src/gen-java
check-gen-cli-grammar:
gen-cli-grammar:
[echo] Building Grammar
/Users/cbm/src/svn/cassandra/src/java/org/apache/cassandra/cli/Cli.g
....
check-gen-cql-grammar:
gen-cql-grammar:
[echo] Building Grammar
/Users/cbm/src/svn/cassandra/src/java/org/apache/cassandra/cql/
compiler/parse/Cql.g
....
build-project:
[echo] apache-cassandra-incubating:
/Users/cbm/src/svn/cassandra/build.xml
[javac] Compiling 289 source files to
/Users/cbm/src/svn/cassandra/build/classes
[javac] /Users/cbm/src/svn/cassandra/src/java/org/apache/
cassandra/cli/CliClient.java:45:
cannot access org.apache.thrift.TException
[javac] bad class file:
/Users/cbm/src/svn/cassandra/lib/libthrift.jar(org/apache/thrift/
TException.class)
[javac] class file has wrong version 50.0, should be 49.0
[javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.
[javac] public void executeCLIStmt(String stmt) throws
TException, NotFoundException, InvalidRequestException,
UnavailableException
[javac] ^
[javac] 1 error
BUILD FAILED
/Users/cbm/src/svn/cassandra/build.xml:139: Compile failed; see the
compiler error output for details.
Total time: 4 seconds
This is on a clean checkout.
Just wanted to report, I don't know java at all, so if I am missing
something obvious I apologize.
--
# Curt Micol