Just in case someone stumbles into the same problem, On Thu, Dec 25, 2008 at 6:07 PM, Mateusz Berezecki <[email protected]> wrote: > When compiling 0.9.1.1 on my Mac OS X 10.5 I am having this kind of problem > compile: > [javac] Compiling 63 source files to /Users/m/work/hypertable/build/classes > [javac] > /Users/m/work/hypertable/src/java/Core/org/hypertable/DfsBroker/hadoop/HdfsBroker.java:34: > cannot access org.apache.hadoop.conf.Configuration > [javac] bad class file: > /Users/m/work/hypertable/lib/hadoop-0.19.0-core.jar(org/apache/hadoop/conf/Configuration.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] import org.apache.hadoop.conf.Configuration; > [javac] ^ > [javac] 1 error > > My java version is javac 1.6.0_07 which is about right I believe, but > still, when compiling hypertable it does not work with > hadoop-0.19.0-core.jar library. Compiling the same code on Linux with > java version javac 1.6.0_10 works flawlessly. > > I have removed CMakeCache.txt and even did a fresh checkout of the > source from the public repository but nothing helped. The error output > seems to suggest that the java version used in the compilation process > is 1.5 , while the command line is using java version 1.6 . Did anyone > encounter this particular problem? Any suggestions on solving it?
Just do the following # cd /System/Library/Frameworks/JavaVM.framework/Versions # rm -f CurrentJDK # ln -sf 1.6 CurrentJDK and it should take care of the problem. Mateusz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hypertable Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hypertable-dev?hl=en -~----------~----~----~----~------~----~------~--~---
