LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 772|回复: 0

我的 Eclipse 为什么不能编辑 Python 文件

[复制链接]
发表于 2005-7-31 19:51:48 | 显示全部楼层 |阅读模式
Debian 系统,安装 Eclipse 和 pyDev 插件,可不能编辑 Python 文件
错误如下:

  1. Unable to create this part due to an internal error. Reason for the failure:
  2. The editor class could not be instantiated. This usually indicates that the
  3. editor's class name was mistyped in plugin.xml.
复制代码


  1. java.lang.ClassNotFoundException: org.python.pydev.editor.PyEdit
  2.         at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:403)
  3.         at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
  4.         at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
  5.         at java.lang.ClassLoader.loadClass(Unknown Source)
  6.         at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
  7.         at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
  8.         at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1259)
  9.         at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
  10.         at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
  11.         at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
  12.         at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
  13.         at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:240)
  14.         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
  15.         at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:236)
  16.         at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(EditorDescriptor.java:252)
  17.         at org.eclipse.ui.internal.EditorManager.createPart(EditorManager.java:837)
  18.         at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:543)
  19.         at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
  20.         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
  21.         at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:258)
  22.         at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1216)
  23.         at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:944)
  24.         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
  25.         at org.eclipse.core.runtime.Platform.run(Platform.java:783)
  26.         at org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:939)
  27.         at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2535)
  28.         at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1819)
  29.         at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2566)
  30.         at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2515)
  31.         at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514)
  32.         at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1263)
  33.         at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
  34.         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
  35.         at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
  36.         at org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1258)
  37.         at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1512)
  38.         at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1491)
  39.         at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374)
  40.         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
  41.         at org.eclipse.core.runtime.Platform.run(Platform.java:783)
  42.         at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1318)
  43.         at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
  44.         at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:700)
  45.         at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
  46.         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
  47.         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
  48.         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
  49.         at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
  50.         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
  51.         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
  52.         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
  53.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  54.         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  55.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  56.         at java.lang.reflect.Method.invoke(Unknown Source)
  57.         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
  58.         at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
  59.         at org.eclipse.core.launcher.Main.run(Main.java:973)
  60.         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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表