Netbeans, Subversion and Mac

NetBeans has SVN support pretty much out-of-the-box, but on OS X you will be presented with the not so obvious message

NetBeans Subversion support requires Subversion 1.3 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 IDE, please

Since I apparently has forgotten how I made it work before here is the instruction for future reference, hopefully this will save me (and perhaps others) from some frustration.

  1. Fire up a terminal
  2. Navigate to your Netbeans installtion folder like
    cd /Applications/NetBeans5.5.app/Contents/Resources/NetBeans/bin
  3. Open the netbeans file in your favorite editor
  4. On the first line (after comments) add
    PATH=$PATH:/usr/local/bin:/usr/local/sbin
    export PATH
  5. Save the file, and restart NetBeans

Your all set!

Comments

One Response to “Netbeans, Subversion and Mac”

  1. Suhas on February 27th, 2008 2:55 pm

    Hi,

    It was very useful information. Thank you…
    I used to export the path in terminal (confirmed svn –version) but NetBeans-SVN plug-in was not working even after relaunch…

Leave a Reply