Actually, it looks like it may not compile under 1.6 either. build.xml has the following:
<property name="source.version" value="1.7"/> <property name="target.version" value="1.7"/> BTW this came because I'm setting up a little test cluster on three spare mac computers in our labs. They haven't been updated for sometime and are running MacOs 10.6.8. Trying to install JDK 7u25 is a no go, only supported on 10.7.3. It's not a major issue, just a warning that older Mac users may find this a problem. Andy ________________________________________ From: Michał Michalski [mich...@opera.com] Sent: 22 July 2013 09:14 To: user@cassandra.apache.org Subject: Re: Cassandra 2 vs Java 1.6 I believe it won't run on 1.6. Java 1.7 is required to compile C* 2.0+ and once it's done, you cannot run it using Java 1.6 (this is what "Unsupported major.minor version" error tells you about; java version 50 is 1.6 and 51 is 1.7). M. W dniu 22.07.2013 10:06, Andrew Cobley pisze: > I know it was decided to drop the requirement for Java 1.6 for cassandra some > time ago, but my question is should > 2.0.0-beta1<http://www.apache.org/dyn/closer.cgi?path=/cassandra/2.0.0/apache-cassandra-2.0.0-beta1-bin.tar.gz> > run under java 1.6 at all ? I tried and got the following error: > > > macaroon:bin administrator$ Exception in thread "main" > java.lang.UnsupportedClassVersionError: > org/apache/cassandra/service/CassandraDaemon : Unsupported major.minor > version 51.0 > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) > at java.lang.ClassLoader.defineClass(ClassLoader.java:615) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) > at java.net.URLClassLoader.access$000(URLClassLoader.java:58) > at java.net.URLClassLoader$1.run(URLClassLoader.java:197) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > macaroon:bin administrator$ java -version > java version "1.6.0_43" > Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-10M4203) > Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode) > macaroon:bin administrator$ > > It's fine by me if thats the case ! > > Andy > > > The University of Dundee is a registered Scottish Charity, No: SC015096 > The University of Dundee is a registered Scottish Charity, No: SC015096