I have had no problems with these versions: BuzzBook-Pro:graphs$ java -version *java version "1.6.0_24"* Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode) BuzzBook-Pro:graphs$ mvn -version *Apache Maven 3.0.2 (r1056850; 2011-01-08 16:58:10-0800)* Java version: 1.6.0_24, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman *OS name: "mac os x", version: "10.6.7", arch: "x86_64", family: "mac"* BuzzBook-Pro:graphs$
Hope this helps. On Sun, Apr 10, 2011 at 9:06 AM, Jeff Eastman <[email protected]>wrote: > Every time Apple updates the jdk I have these kinds of problems. I'm just > going to switch back to my linux box for today and punt this exercise > > > On 4/10/11 8:47 AM, Benson Margulies wrote: > >> Well, I'd use sh -x to run the mvn command and see what on earth it's >> doing. It seems to have left a critical piece of the maven core out of >> the class path. >> >> On Sun, Apr 10, 2011 at 11:45 AM, Jeff Eastman >> <[email protected]> wrote: >> >>> I've reinstalled mvn 2.2.1 and also 3.0.3. Going to each bin and running >>> mvn >>> from there causes the same problem. Must be my new jdk is lost in space >>> but >>> java --version works and is 1.6.0_24 >>> >>> On 4/10/11 8:41 AM, Benson Margulies wrote: >>> >>>> Do you have a creative settings of JAVA_HOME or a ~/.m2-something? >>>> >>>> On Sun, Apr 10, 2011 at 11:35 AM, Jeff Eastman >>>> <[email protected]> wrote: >>>> >>>>> Maven 2.2.1 and it has been working until recently. I installed a >>>>> recent >>>>> Mac >>>>> upgrade with new jdk but java is working normally. >>>>> >>>>> >>>>> On 4/10/11 8:17 AM, Benson Margulies wrote: >>>>> >>>>>> What version of maven, and how did you install it? I use maven >>>>>> constantly, and I don't know how to get that error except with a >>>>>> defective installation or a very strange setting of MAVEN_OPTS. >>>>>> >>>>>> On Sun, Apr 10, 2011 at 10:52 AM, Jeff Eastman >>>>>> <[email protected]> wrote: >>>>>> >>>>>>> Trying to run mvn on my mac (after about 6 months on a Linux box at >>>>>>> work) >>>>>>> but getting this. I seem to recall getting a new Java version update >>>>>>> a >>>>>>> while >>>>>>> back but Java works fine. Any ideas? >>>>>>> >>>>>>> >>>>>>> jeff-eastmans-macbook-pro:mahout jeff$ mvn >>>>>>> Exception in thread "main" java.lang.NoClassDefFoundError: >>>>>>> org/codehaus/plexus/classworlds/launcher/Launcher >>>>>>> Caused by: java.lang.ClassNotFoundException: >>>>>>> org.codehaus.plexus.classworlds.launcher.Launcher >>>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202) >>>>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190) >>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >>>>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:248) >>>>>>> >>>>>>> >>>>>>> >>> >
