|
Debian 系统,安装 Eclipse 和 pyDev 插件,可不能编辑 Python 文件
错误如下:
- Unable to create this part due to an internal error. Reason for the failure:
- The editor class could not be instantiated. This usually indicates that the
- editor's class name was mistyped in plugin.xml.
复制代码
- java.lang.ClassNotFoundException: org.python.pydev.editor.PyEdit
- at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:403)
- at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
- at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
- at java.lang.ClassLoader.loadClass(Unknown Source)
- at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
- at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
- at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1259)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
- at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
- at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
- at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:240)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
- at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:236)
- at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:252)
- at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:837)
- at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:543)
- at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
- at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
- at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:258)
- at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1216)
- at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:944)
- at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
- at org.eclipse.core.runtime.Platform.run(Platform.java:783)
- at org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:939)
- at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2535)
- at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1819)
- at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2566)
- at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2515)
- at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514)
- at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1263)
- at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
- at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
- at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
- at org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1258)
- at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1512)
- at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1491)
- at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374)
- at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
- at org.eclipse.core.runtime.Platform.run(Platform.java:783)
- at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1318)
- at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
- at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:700)
- at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
- at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
- at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
- at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
- at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
- at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
- 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.core.launcher.Main.invokeFramework(Main.java:334)
- at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
- at org.eclipse.core.launcher.Main.run(Main.java:973)
- at org.eclipse.core.launcher.Main.main(Main.java:948)
复制代码
安装步骤如下:
1.下载并解压:eclipse-SDK-3.1-linux-gtk.tar.gz
2.下载并执行:j2re-1_4_2_08-linux-i586.bin 安装JRE
3.运行eclipse, Help->Software update->Find and install... , 从 http://pydev.sf.net/updates/ 站点下载并安装 Pydev 0.9.7 |
|