Reputation: 6460
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.
I'm now running into the same issue though.
I just recently upgraded to 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:
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:
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.
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:
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?
UPDATE attached is a screenshot of the empty SVN interface client dropdown.
Thanks!
Upvotes: 8
Views: 28580
Reputation: 15703
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 Subclipse site to your Eclipse Luna workspace to install it.
Upvotes: 0
Reputation: 3091
The best way I found to install subversive and its connector is as below:
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.
HTH
Upvotes: 1
Reputation: 1477
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.
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
Upvotes: 8
Reputation: 803
I was getting the same problem: "unable to load default svn client"
empty combo in 'preferences / team / svn'
I did like this to make works:
window > install new software > http://subclipse.tigris.org/update_1.10.x/
re-check all checkboxes, and go. After restart, it was ok
Upvotes: 0
Reputation: 10419
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.
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.
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.
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.
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.
Upvotes: 1
Reputation: 311
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.
Upvotes: 2