Jimmy's Blog

Using svn+ssh with Netbeans 5.5 + Windows

by jimmy on Nov.06, 2007, under English, Java, Programming

[Switch to Mobile Edition]

After you install Netbeans 5.5 you need to download/install subversion module.
At Netbeans menu select ‘Tools’ – ‘Update Center’ to add subversion module.
If the installation finished, you will see menu Subversion on Netbeans menu.

You’ll also need to install SVN : download page here

I’m using PuTTY’s plink.exe for ssh. You can get PuTTY package here.
Extract PuTTYto a directory and add path to that directory.
How to setting enviroment variables in Windows:

  • Open System Properties (by right click ‘My Computer’ – ‘Properties or by press button ‘windows’ + ‘break’)
  • Select tab Advanced & click button ‘Environment Variables’
  • You can edit System Variable : ‘path’
  • Add path to your PuTTY directory. (don’t delete other path, just add with ‘;’ as separator)
  • OK
  • You can check whether you have correctly add PuTTY’s path by running console (cmd) and run plink.exe without fullpath.

Then open subversion configuration file at : %APPDATA%\Subversion\config
Assuming you using default folder it will be : “c:\Documents and Settings\username\Application Data\Subversion\config”
Open file config using notepad or other text-editor.
Edit the [tunnels] section and add :

ssh = $SVN_SSH plink.exe -l <username> -pw <password>

Of course change the <username> and <password> with yours. lol.

Then save it & restart your Netbeans.
After that you should able to check out/import project via svn+ssh.

  • Select menu ‘Subversion’ – ‘Checkout…’
  • URL example : svn+ssh://100.1.1.1/opt/subv/myproject/trunk
  • Leave username & password empty
  • Click next & follow the instructions.

If there’s no errors then Congratulations :-)

Related posts:

  1. Netbeans 6 – Configure which editor (representative class) for new type extension
  2. NetBeans IDE 6 final released
  3. Change junit & run file (main class) working directory at Netbeans 5.5 Web Project
  4. NetBeans 6 T-shirt
  5. NetBeans 6 Bug – ConfigurationException Class in Apache Common Configuration is not Throwable?

:, , ,

8 Comments for this entry

  • thenava

    Do you know if this works with NetBeans 6.0 C 2? In 6.0, it asks for the Repository URL, and when you type in the url, it asks for a Tunnel Command. What am I supposed to do there? I typed in plink -l username -pw password again, but it gives me a connection error. Any ideas?

    Thanks.

  • jimlife

    Hi thenava,

    Yes, currently I’m using Netbeans 6 RC2.
    I think it’s giving you connection error because:
    - You haven’t installed PuTTY
    or
    - You haven’t set putty directory to windows path (at windows system properties)
    or
    - You haven’t set your tunnel command at file ‘config’ at ‘c:\Documents and Settings\username\Application Data\Subversion\config’

  • thenava

    Sorry for the late reply. It turns out it was a server side error. Thanks for reply though!

  • @RuSHA

    How i can use SSH directory on work server in Netbeans as source files?
    Example as in Zend Development Environment when i’m add FTP Server

  • jimlife

    @Rusha:
    I can’t find that either (Netbeans 6.1).
    Sometimes I use tortoiseSVN for this purpose.
    Eclipse+Subclipse had this browsing feature.

  • Chu Mcgurl

    hello guys!! Amazing site!

  • Zandra Ghent

    wonderful points altogether, you simply gained a logo new reader. What might you recommend about your submit that you made a few days ago? Any certain?

Leave a Reply

Spam Protection by WP-SpamFree

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...