简体   繁体   English

Eclipse Luna(4.4.0)和Subclipse无法正常工作

[英]Eclipse Luna (4.4.0) and Subclipse not working

I know there are tons of Eclipse/Subclipse questions out there regarding issues with javahl. 我知道有很多关于javahl问题的Eclipse / Subclipse问题。 I've been using Eclipse/Subclipse together for a long time without the javahl issues. 我一直在使用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. 我还升级到Eclipse Luna 4.4.0并安装了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: 但是在创建远程存储库并尝试在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$1.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安装

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一个机会。 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. Eclipse 4.4 udpates软件站点( http://download.eclipse.org/eclipse/updates/4.4 )中没有Subversive,所以我尝试了Eclipse Marketplace Client。 Installing via Marketplace I get the following error: 通过市场安装我收到以下错误:

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

Does anyone have Eclipse and Subclipse or Subversive working? 有没有人有Eclipse和Subclipse或Subversive工作? What steps do I need to take to get this working? 我需要采取哪些步骤来实现这一目标?

UPDATE attached is a screenshot of the empty SVN interface client dropdown. UPDATE附件是空SVN接口客户端下拉列表的屏幕截图。

在此输入图像描述

Thanks! 谢谢!

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. 颠覆性更新站点是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/ . 在Work with列表中,选择Luna - http://download.eclipse.org/releases/luna/ A list of software packages appears. 出现一个软件包列表。

Expand the Collaboration node, scroll the list and select Subversive features 展开Collaboration节点,滚动列表并选择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. Subversive将下载并安装。

It is recommended to accept the option to restart Eclipse. 建议接受重启Eclipse的选项。

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

http://community.polarion.com/projects/subversive/download/integrations/luna-site/ – [optional] Subversive Integrations http://community.polarion.com/projects/subversive/download/integrations/luna-site/ - [可选]颠覆性集成

I suppose You don't have some library needed by jaha-hl. 我想你没有jaha-hl需要的库。 It depends on Your OS. 这取决于您的操作系统。 Why don't You try SVN Kit instead of JavaHL? 为什么不尝试使用SVN Kit而不是JavaHL? You can change provider in window -> preferences -> team -> subversion. 您可以在窗口中更改提供程序 - >首选项 - >团队 - > subversion。

I am running Eclipse 4.4 (Luna) on OSX Mavericks using the same Subclipse version you are using. 我在OSX Mavericks上使用您正在使用的相同Subclipse版本运行Eclipse 4.4(Luna)。 In my case, the JavaHL library is installed via Homebrew. 就我而言,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. 我不认为这与你的问题有关,但我的环境的不同之处在于我使用的是Java 8.事后看来它没有意义但是我有这样的回忆,Eclipse 4.4说我必须升级Java才能启动它。 Maybe it said I needed at least Java 7 and I simply chose to install Java 8. Do not remember. 也许它说我至少需要Java 7而我只是选择安装Java 8.不记得了。

I am a bit stumped ATM by your error because of the NoClassDef found. 由于发现了NoClassDef,我的错误会让你的ATM错误。 That does not feel like the usual error you see when the problem is with your libraries. 当您的库出现问题时,您不会感觉到通常的错误。

What do you see in the preferences when you do Team > SVN? 当您选择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). 这意味着Eclipse插件甚至没有加载,因为通常你会在列表中看到一条带有(未安装)消息的条目。 That you do not even see this seems like a bigger error is involved. 你甚至没有看到这似乎涉及更大的错误。

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. 不确定要检查什么,但是我会在日志和Eclipse安装细节屏幕上查看是否存在一个或多个插件没有被激活的问题。 No explanation why that would happen though. 没有解释为什么会发生这种情况。

The best way I found to install subversive and its connector is as below: 我发现安装颠覆器及其连接器的最佳方法如下:

  1. Go to Help->Install New software. 转到帮助 - >安装新软件。
  2. From the drop down list select "Luna - http://download.eclipse.org/releases/luna ". 从下拉列表中选择“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. 在填充的列表中,转到Collaborator-> Subversive SVN Team Provider。
  4. Click Finish. 单击完成。 This is will install Subversive SVN Team Provider after restart of eclipse. 这将在重新启动eclipse后安装Subversive SVN Team Provider。

Then right click on empty are of Project Explorer and select import and then other. 然后右键单击Project Explorer的空白,然后选择import,然后选择其他。 From the new menu select SVN-Project from SVN , this will ask for connector installation. 从新菜单中选择SVN的SVN-Project,这将要求安装连接器。 Select desired connector and install it. 选择所需的连接器并进行安装。

HTH HTH

I was getting the same problem: "unable to load default svn client" 我遇到了同样的问题:“无法加载默认的svn客户端”

empty combo in 'preferences / team / svn' 'preferences / team / 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 重启后,没关系

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM