Sunday, February 5, 2012

Portable Netbeans

 Simply do this:
  • Make sure you have the same JDK installed (in the same paths) on the machines where you use the USB drive - or copy the JDK on the drive too. The same applies to web servers / version control systems / runtimes, whatever is applicable.
  • Download the OS-independent.zip distribution of NetBeans. Unpack it on your usb stick.
  • The directories you need to copy are the netbeans userdir (.netbeans directory), and of course your project directories.
  • Check whether you have a global netbeans.conf file: If yes, make certain it is identical to the one in your userdir to prevent unexpected behaviour in either environment.
  • In your netbeans installation directory, open /etc/netbeans.conf in a text editor.
  • Change netbeans_default_userdir="${HOME}/.netbeans/6.5rc2" to something like
    netbeans_default_userdir="X:/.netbeans/6.5" 
    assuming X is your USB sticks drive name.
  • Change the path to the JDK from #netbeans_jdkhome="/path/to/jdk" to e.g.
    netbeans_jdkhome="X:/jdk"
    Make sure to remove the hashsign (comment).
Reference:

No comments:

Post a Comment