Portable Netbeans
I got a new USB stick today and decided to make a good IDE-on-the-go out of it. I installed XAMPP, my favorite text editor, FTP manager and than I came across my favorite IDE for python development – Netbeans… After about 3 hours of fighting with it I did actually make it portable
So what you need to do to make Netbeans portable:
- First, copy already installed Netbeans to your USB stick. ( I recommend choosing a zipped version from here then simply unpack it)
- Now there are 2 possible ways: editing a configuration file and applying commands to a shortcut. I’ll describe both:
- 1st: find file netbeans.conf in directory etc\ inside a directory with Netbeans. Now line
netbeans_default_userdir="${HOME}/.netbeans/6.5"replace with
netbeans_default_userdir=".\YOUR_USER_FOLDER"where YOUR_USER_FOLDER is a folder with different configs. It must not be in the same directory that your Netbeans is (it was my mistake).
Now find line with something like
netbeans_jdkhome="/path/to/jdk"it defines path to a place where JDK is installed in your stick. Replace it with something like
netbeans_jdkhome=".\JDK\"don’t forget to replace JDK with a valid for you path
- 2nd: if you are using PStart or something similar to that make a shortcut for netbeans.exe and add commands:
--jdkhome "%pdrive%\PATH_TO_JDK" --userdir "%pdrive%\PATH_TOU_USERDIR"
where PATH_TO_JDK is a directory with JDK on your flash USB and PATH_TOU_USERDIR is your user directory. Again it must not be in the same directory that your Netbeans is.
- 1st: find file netbeans.conf in directory etc\ inside a directory with Netbeans. Now line
And that’s it! Happy coding
9 Responses to “Portable Netbeans”
Leave a Reply
You must be logged in to post a comment.

Hi,
Interesting tip. This adds value to the documentation available in community for using NetBeans. Have you seen the wiki article at http://wiki.netbeans.org/FaqPortableWorkingEnvironments, if not please do that also. You shall also add your tip in NetBeans community docs.
with regards
Tushar Joshi, Nagpur
http://netbeanside61.blogspot.com
Comment by Tushar Joshi on February 2, 2009 at 1:35 pm
Thanks for your advise! I’ll check that wiki and add all info that I can as soon as I get some free time.
Comment by admin on February 2, 2009 at 7:55 pm
Hello, I can’t understand how to add your blog ( hollgam.com ) in my rss reader
————————
ads: http://qugor.ru
Comment by aliltedia on February 7, 2009 at 12:36 pm
Hey! Simply click on the orange icon in the address bar in FF if you are using it (about other browser I am not sure but I believe they’ve got something similar to that too) or use a direct link http://hollgam.com/blog/?feed=rss2 . Good luck!
Comment by admin on February 7, 2009 at 1:32 pm
Hello, I can’t understand how to add your blog ( hollgam.com ) in my rss reader
————————
my blog: http://youraudiovox.com/music5/map.html
Comment by Peledalex on February 7, 2009 at 3:17 pm
hollgam.com – great domain name for blog like this)))
————————
my blog: http://lilid.ru/
Comment by Stoolicoalk on February 10, 2009 at 2:48 pm
hollgam.com – now in my rss reader)))
————————
internet signature: http://lilid.ru/
Comment by Stoolicoalk on February 10, 2009 at 4:22 pm
Heh Really?
It’s just my nickname, nothing much really
but thanks!
Comment by admin on February 10, 2009 at 5:38 pm
hollgam.com – now in my rss reader)))
————————
sponsored link: http://hixoh.ru/
Comment by Douggetitmema on February 13, 2009 at 11:06 pm