Thanks. That resolved the JDK problem.
I'll post my other questions on the m2eclipse forum. Anders Hammar wrote: > > This is a question for the m2eclipse user list. But, you need to run > Eclipse > with a JDK, not a JRE. You're doing that wrong. What you need to do is > explained here: > http://www.jguru.com/forums/view.jsp?EID=1367369 > > /Anders > > On Mon, Nov 9, 2009 at 12:49, lekkie <[email protected]> wrote: > >> >> Hi, >> >> I have Eclipse ganymede installed and I downloaded m2eclipse plugin to >> enable eclipse manage eclipse projects. >> >> The download was successfully but I can install projects. It kept saying >> this: >> >> constituent12: >> >> file:/C:/Program%20Files/Eclipse/Eclipse%203.4/plugins/org.maven.ide.components.maven_embedder_3.0.0.SNAPSHOT-r811512/jars/plexus-cipher-1.4.jar >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/codehaus/plexus/util/FileUtils >> at >> >> org.apache.cxf.maven_plugin.WsdlOptionLoader.getWsdlFiles(WsdlOptionLoader.java:82) >> at >> org.apache.cxf.maven_plugin.WsdlOptionLoader.load(WsdlOptionLoader.java:72) >> at >> >> org.apache.cxf.maven_plugin.WSDL2JavaMojo.getWsdlOptionsFromDir(WSDL2JavaMojo.java:125) >> at >> org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:188) >> at >> >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:103) >> at >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:477) >> at >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:314) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:199) >> at >> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:460) >> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:334) >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:70) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> >> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) >> at >> >> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) >> at >> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) >> Caused by: java.lang.ClassNotFoundException: >> org.codehaus.plexus.util.FileUtils >> at >> >> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) >> at >> >> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:215) >> at >> >> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:201) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) >> ... 19 more >> >> I can authoritatively confirm toyou the class in present in that path and >> that the said file is also present in the jar file. >> >> Firstly: >> It kept saying "Eclipse is running in a JRE, but a JDK is required. Some >> Maven plugins may not work when importing projects or updating source >> folders." even though I have changed the settings in >> "Windows->preferences->java->Installed JRE" to a jdk path. >> >> It also complains of "Settings file doesn't exist. Returning null.". I >> have >> no settings.xml in my local repository. How to I setup the file, what is >> the >> content, I seriously doubt that is the cause of the error. >> >> At some point during start up, it comes with this error: >> >> \xalan\xalan\2.7.1\xalan-2.7.1.pom error in opening zip file >> >> Any suggestion will be appreciated. >> >> kr, >> >> Lekkie. >> >> >> >> -- >> View this message in context: >> http://old.nabble.com/Exception-in-thread-%22main%22-java.lang.NoClassDefFoundError-tp26265069p26265069.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > -- View this message in context: http://old.nabble.com/Exception-in-thread-%22main%22-java.lang.NoClassDefFoundError-tp26265069p26266272.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
