If you try to use subversion feature of Netbeans 5.5.1, you may encounter this error message:
"NetBeans Subversion support requires Subversion executable!
Install Subversion 1.3 (
http://subversion.tigris.org) or later,
add it to PATH,
test by running 'svn --version' from command line, and
finally restart the IDE, please."
Here's the fix:
- Make sure that you downloaded and install subversion client on your machine.
- By default, subversion client will be installed to "usr/local/bin" folder on UNIX and Mac OS X machines and "C:\Program Files\Subversion\bin" for Windows.
- Add directory path to subversion executable to your PATH variable. This blog entry of Brook Andrus gives excellent instruction on how to do so.
- Double check to see that you set up your PATH right. Enter "echo $PATH" on Terminal, if you did it correctly, the output message will contain your path (":/usr/local/bin:") to subversion executable.
- Download and install Netbeans subversion module from Netbeans Update Center
- Restart the IDE
At this point, your Netbeans should be able to detect subversion client. However, if Netbeans still complains about missing subversion client, you will need to point Netbeans to the right directory.
From Netbeans Wiki:
in Netbeans 5.5 there is a commandline switch for pointing to the subversion executable.
switch for svn executable
"-J-Dsubversion.path=/path/to/subversion/bin"
For example: -J-Dsubversion.path="C:\Program Files\Subversion\bin"}} - path contains white spaces therefore quotes are necessary.
If you want to make sure that this info is saved for the future, edit Netbeans config file.
- Go to Netbeans home directory and locate the file netbeans.config
- Open up the config file and locate "netbeans_default_options=..." variable. then add "-J-Dsubversion.path=/path/to/subversion/bin" to the variable
- Restart the IDE
Special thanks to Tomas Stupka for pointing out the useful link