Java Eclipse Luna (4.4.0) 和 Subclipse 不工作

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25112078/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 23:39:24  来源:igfitidea点击:

Eclipse Luna (4.4.0) and Subclipse not working

javaeclipsesvneclipse-pluginsubclipse

提问by lostdorje

I know there are tons of Eclipse/Subclipse questions out there regarding issues with javahl. I've been using Eclipse/Subclipse together for a long time without the javahl issues.

我知道有很多关于 javahl 问题的 Eclipse/Subclipse 问题。我一直在使用 Eclipse/Subclipse 很长一段时间没有 javahl 问题。

I'm now running into the same issue though.

不过,我现在遇到了同样的问题。

I just recently upgraded to Java 7:

我最近才升级到 Java 7:

$ java -version
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

I also upgraded to Eclipse Luna 4.4.0 and installed Subclipse. But after creating a remote repository and trying to browse it in the SVN Repository Exploring perspective I see this in the Eclipse .log error log file:

我还升级到 Eclipse Luna 4.4.0 并安装了 Subclipse。但是在创建远程存储库并尝试在 SVN Repository Exploring 透视图中浏览它之后,我在 Eclipse .log 错误日志文件中看到了这一点:

java.lang.NoClassDefFoundError: Could not initialize class org.apache.subversion.javahl.SVNClient
    at org.tigris.subversion.svnclientadapter.javahl.JhlClientAdapter.<init>(JhlClientAdapter.java:57)
    at org.tigris.subversion.clientadapter.javahl.Activator.getAdapter(Activator.java:64)
    at org.tigris.subversion.clientadapter.Activator.getClientAdapter(Activator.java:70)
    at org.tigris.subversion.subclipse.core.SVNClientManager.getAdapter(SVNClientManager.java:127)
    at org.tigris.subversion.subclipse.core.SVNClientManager.getSVNClient(SVNClientManager.java:94)
    at org.tigris.subversion.subclipse.core.SVNProviderPlugin.getSVNClient(SVNProviderPlugin.java:462)
    at org.tigris.subversion.subclipse.core.repo.SVNRepositoryLocation.getSVNClient(SVNRepositoryLocation.java:257)
    at org.tigris.subversion.subclipse.core.resources.RemoteFolder.getMembers(RemoteFolder.java:164)
    at org.tigris.subversion.subclipse.core.resources.RemoteFolder.members(RemoteFolder.java:260)
    at org.tigris.subversion.subclipse.ui.operations.FetchMembersOperation.execute(FetchMembersOperation.java:41)
    at org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(SVNOperation.java:90)
    at org.tigris.subversion.subclipse.ui.repository.model.SVNRepositoryRootElement.fetchDeferredChildren(SVNRepositoryRootElement.java:73)
    at org.eclipse.ui.progress.DeferredTreeContentManager.run(DeferredTreeContentManager.java:238)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

See pic below to see the components I installed with Subclipse:

请参阅下图以查看我使用 Subclipse 安装的组件:

Subclipse Installation

子剪辑安装

Regarding the SVNKit Client Adapter (Not required), I have installed Subclipse both with and without this component selected and in both cases I see the same javahl.SVNClient error.

关于 SVNKit 客户端适配器(不需要),我在选择和不选择此组件的情况下都安装了 Subclipse,在这两种情况下,我都看到了相同的 javahl.SVNClient 错误。

How do I solve this?

我该如何解决这个问题?

As an aside, I figured maybe I'd give Subversive a go. Subversive is not available in the Eclipse 4.4 udpates software site (http://download.eclipse.org/eclipse/updates/4.4) so I tried the Eclipse Marketplace Client. Installing via Marketplace I get the following error:

顺便说一句,我想也许我会尝试一下 Subversive。Subversive 在 Eclipse 4.4 udpates 软件站点 ( http://download.eclipse.org/eclipse/updates/4.4) 中不可用,所以我尝试了 Eclipse Marketplace Client。通过 Marketplace 安装我收到以下错误:

The following solutions are not available: Subversive: SVN Team Provider 2.0

Does anyone have Eclipse and Subclipse or Subversive working? What steps do I need to take to get this working?

有没有人有 Eclipse 和 Subclipse 或 Subversive 工作?我需要采取哪些步骤才能使其正常工作?

UPDATEattached is a screenshot of the empty SVN interface client dropdown.

随附的更新是空的 SVN 界面客户端下拉列表的屏幕截图。

enter image description here

在此处输入图片说明

Thanks!

谢谢!

回答by Kaskader

I suppose You don't have some library needed by jaha-hl. It depends on Your OS. Why don't You try SVN Kit instead of JavaHL? You can change provider in window -> preferences -> team -> subversion.

我想你没有 jaha-hl 需要的一些库。这取决于您的操作系统。为什么不试试 SVN Kit 而不是 JavaHL?您可以在窗口 -> 首选项 -> 团队 -> 颠覆中更改提供者。

回答by Mark Phippard

I am running Eclipse 4.4 (Luna) on OSX Mavericks using the same Subclipse version you are using. In my case, the JavaHL library is installed via Homebrew.

我正在 OSX Mavericks 上运行 Eclipse 4.4 (Luna),使用与您使用的 Subclipse 版本相同的版本。就我而言,JavaHL 库是通过 Homebrew 安装的。

I do not think it is related to your problem, but a difference in my environment is that I am using Java 8. In hindsight it does not make sense but I have this recollection that Eclipse 4.4 said I had to upgrade Java for it to launch. Maybe it said I needed at least Java 7 and I simply chose to install Java 8. Do not remember.

我不认为这与您的问题有关,但我的环境的不同之处在于我使用的是 Java 8。事后看来这没有意义,但我记得 Eclipse 4.4 说我必须升级 Java 才能启动它. 也许它说我至少需要 Java 7 而我只是选择安装 Java 8。不记得了。

I am a bit stumped ATM by your error because of the NoClassDef found. That does not feel like the usual error you see when the problem is with your libraries.

由于找到了 NoClassDef,您的错误让我对 ATM 感到有些困惑。当您的库出现问题时,这感觉不像您看到的常见错误。

What do you see in the preferences when you do Team > SVN? The drop-down is empty? That would imply the Eclipse plugins did not even load, because normally you would see the entry in the list with a message about (Not installed). That you do not even see this seems like a bigger error is involved.

当您执行 Team > SVN 时,您在首选项中看到了什么?下拉是空的?这意味着 Eclipse 插件甚至没有加载,因为通常您会在列表中看到带有消息(未安装)的条目。你甚至没有看到这似乎涉及更大的错误。

Not sure what to check, but I'd poke around the log and the Eclipse Installation Details screens to see if there is some problem with one or more of the plugins not being activated. No explanation why that would happen though.

不确定要检查什么,但我会查看日志和 Eclipse 安装详细信息屏幕,看看是否存在一个或多个未激活插件的问题。没有解释为什么会发生这种情况。

回答by Overnuts

I was getting the same problem: "unable to load default svn client"

我遇到了同样的问题:“无法加载默认的 svn 客户端”

empty combo in 'preferences / team / svn'

“首选项/团队/ svn”中的空组合

I did like this to make works:

我确实喜欢这样来制作作品:

window > install new software > http://subclipse.tigris.org/update_1.10.x/

窗口 > 安装新软件 > http://subclipse.tigris.org/update_1.10.x/

re-check all checkboxes, and go. After restart, it was ok

重新检查所有复选框,然后去。重启后就好了

回答by Pierpaolo Cira

I think that a solution can be found at Polarion website (developers of SVN connectors used by Subversive plugins) http://www.polarion.com/products/svn/subversive/download.php?utm_source=eclipse.org&utm_medium=link&utm_campaign=subversive.

我认为可以在 Polarion 网站(Subversive 插件使用的 SVN 连接器的开发者)http://www.polarion.com/products/svn/subversive/download.php?utm_source=eclipse.org&utm_medium=link&utm_campaign=subversive 上找到解决方案 .

It says

它说

The Subversive Update Site is a part of Luna Update Site.

To install: On main menu, choose Help > Install New Software. The available Software dialog appears. In the Work with list, select Luna - http://download.eclipse.org/releases/luna/. A list of software packages appears.

Expand the Collaboration node, scroll the list and select Subversive features

Check other options in the dialog as desired and click the Next button. The Install Details screen appears in the dialog.

Click the Next button, accept the license and click Finish. Subversive will download and install.

It is recommended to accept the option to restart Eclipse.

http://community.polarion.com/projects/subversive/download/eclipse/4.0/luna-site/– [required] Subversive SVN Connectors

http://community.polarion.com/projects/subversive/download/integrations/luna-site/– [optional] Subversive Integrations

Subversive 更新站点是 Luna 更新站点的一部分。

安装: 在主菜单上,选择帮助 > 安装新软件。出现可用的软件对话框。在 Work with 列表中,选择 Luna - http://download.eclipse.org/releases/luna/。将出现一个软件包列表。

展开协作节点,滚动列表并选择颠覆性功能

根据需要检查对话框中的其他选项,然后单击下一步按钮。安装详细信息屏幕出现在对话框中。

单击下一步按钮,接受许可并单击完成。Subversive 将下载并安装。

建议接受重新启动 Eclipse 的选项。

http://community.polarion.com/projects/subversive/download/eclipse/4.0/luna-site/– [必需] 颠覆性 SVN 连接器

http://community.polarion.com/projects/subversive/download/integrations/luna-site/– [可选] 颠覆性整合

回答by nanosoft

The best way I found to install subversive and its connector is as below:

我发现安装 subversive 及其连接器的最佳方法如下:

  1. Go to Help->Install New software.
  2. From the drop down list select "Luna - http://download.eclipse.org/releases/luna". Now some list should be populated.
  3. In the populated list go to Collaborator->Subversive SVN Team Provider.
  4. Click Finish. This is will install Subversive SVN Team Provider after restart of eclipse.
  1. 转到帮助-> 安装新软件。
  2. 从下拉列表中选择“Luna - http://download.eclipse.org/releases/luna”。现在应该填充一些列表。
  3. 在填充的列表中,转到 Collaborator->Subversive SVN Team Provider。
  4. 单击完成。这将在 eclipse 重启后安装 Subversive SVN Team Provider。

Then right click on empty are of Project Explorer and select import and then other. From the new menu select SVN-Project from SVN , this will ask for connector installation. Select desired connector and install it.

然后右键单击 Project Explorer 的空白区域并选择导入,然后选择其他。从新菜单中选择 SVN-Project from SVN ,这将要求安装连接器。选择所需的连接器并安装。

HTH

HTH

回答by James Drinkard

I don't know if this is a new link or not, but you can just drag n drop the install icon from the Eclipse Marketplace Subclipsesite to your Eclipse Luna workspace to install it.

我不知道这是否是一个新链接,但您只需将安装图标从Eclipse Marketplace Subclipse站点拖放到 Eclipse Luna 工作区即可进行安装。