hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "郭芸" <mickey.guo...@gmail.com>
Subject Re: A problem about hadoop
Date Mon, 20 Sep 2010 00:55:37 GMT
select your project,Right-click->source->clean up


2010-09-20 



郭芸 



发件人: chenqian 
发送时间: 2010-09-20  08:52:40 
收件人: common-issues 
抄送: 
主题: A problem about hadoop 
 
Hello:
 I have got a problem while using hadoop-0.20.1-eclipse-plugin.jar in eclipse.
========================================
java.lang.UnsupportedClassVersionError: Bad version number in .class file
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:161)
 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:501)
 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:471)
 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:430)
 at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:413)
 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
 at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340)
 at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:408)
 at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
 at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
 at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:289)
 at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
 at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1269)
 at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
 at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:788)
 at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
 at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
 at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:252)
 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
 at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:248)
 at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:69)
 at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:327)
 at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227)
 at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
 at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2086)
 at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1027)
 at org.eclipse.ui.internal.WorkbenchPage.access$19(WorkbenchPage.java:1008)
 at org.eclipse.ui.internal.WorkbenchPage$19.run(WorkbenchPage.java:3684)
 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
 at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3681)
 at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3657)
 at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:165)
 at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:109)
 at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:77)
 at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:239)
 at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
 at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:429)
 at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165)
 at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
 at org.eclipse.ui.internal.ShowViewMenu$3.run(ShowViewMenu.java:128)
 at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
 at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
 at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
 at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
 at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
 at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
 at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
 at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
============================================================
I did as follow:
1.Window --> Preferences -->Java --> compiler   compiler compliance 
2.Window --> Preferences -->Java -->Installed JRES
I changed these to JDK6.0 ,however the problem still exist,what should i do?
 Thanks.
2010-09-19
chenqian
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message