java.lang.ClassNotFoundException: org.tigris.subversion.javahl.SVNClientInterface when trying to use Subversion from Netbeans

Bug #1049540 reported by Mossroy
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I installed Netbeans 7.0.1 from the standard Ubuntu 12.04 repository.
From within Netbeans, I also installed the Subversion plugin.

Unfortunately, whenever I try to use subversion in Netbeans, it does not find some necessary java class :
java.lang.ClassNotFoundException: org.tigris.subversion.javahl.SVNClientInterface
(see attached full log)

A bug has been opened for this on Netbeans bugtracker : http://netbeans.org/bugzilla/show_bug.cgi?id=210759
There seems to be the same issue in Debian.
But it has been closed as "worksforme" because it seems that the problem does not occur if Netbeans is downloaded from netbeans site (instead of the ubuntu/debian package)

I suspect it might be due to the way Netbeans is packaged in the standard debian/ubuntu repository, which introduces this classpath issue (but I can't say for sure)

I'm using Ubuntu 12.04.1 (x64), with openjdk-6 from standard ubuntu repo (version 6b24-1.11.4-1ubuntu0.12.04.1)

Revision history for this message
Mossroy (mossroy) wrote :
Revision history for this message
Mossroy (mossroy) wrote :

It does not seem to be a problem of access rights : if I run netbeans with sudo, I have the same behavior

Revision history for this message
Mossroy (mossroy) wrote :

In fact, it does seem to be an issue with access rights.
It looks like the Subversion plugin was not installed correctly (I don't know why)
The workaround I found is to :
- run sudo netbeans, and uninstall subversion plugin
- quit netbeans and restart it (without sudo)
- install subversion plugin again

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in netbeans (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel Feliciano Branco (danielblues) wrote :

Your method to make it work solved it.
(Thanks)

Revision history for this message
Stefan Weil (ubuntu-weilnetz) wrote :

I also had this problem today after an initial installation of netbeans 7.0.1+dfsg1-4
which also installed libsvnclientadapter-java 0.9.100-2. This command fixed the problem:

 apt-get install --reinstall libsvnclientadapter-java

Obviously the order of the packet installation is important.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.