hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Wong" <sw...@netflix.com>
Subject UnsupportedClassVersionError when building zkpython
Date Tue, 13 Oct 2009 04:06:21 GMT
Any idea how I can get it to build? ZooKeeper 3.2.1 (tarball release) on
Mac OS X 10.5.8. Thanks.

 

swong@lgmac-swong:~/lib/zookeeper/src/contrib/zkpython 9173> sudo ant
install

Buildfile: build.xml

 

BUILD FAILED

java.lang.UnsupportedClassVersionError: Bad version number in .class
file

                at java.lang.ClassLoader.defineClass1(Native Method)

                at
java.lang.ClassLoader.defineClass(ClassLoader.java:675)

                at
org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.j
ava:1146)

                at
org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.ja
va:1324)

                at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader
.java:1388)

                at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)

                at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)

                at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

                at
org.apache.tools.ant.taskdefs.Available.checkClass(Available.java:446)

                at
org.apache.tools.ant.taskdefs.Available.eval(Available.java:273)

                at
org.apache.tools.ant.taskdefs.Available.execute(Available.java:225)

                at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)

                at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown
Source)

                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:585)

                at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:1
06)

                at org.apache.tools.ant.Task.perform(Task.java:348)

                at org.apache.tools.ant.Target.execute(Target.java:357)

                at
org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:142
)

                at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:9
3)

                at org.apache.tools.ant.Main.runBuild(Main.java:743)

                at org.apache.tools.ant.Main.startAnt(Main.java:217)

                at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)

                at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

 

Total time: 0 seconds

swong@lgmac-swong:~/lib/zookeeper/src/contrib/zkpython 9178> sudo javac
-version

javac 1.6.0_07

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message