When I install the Java SDK on my stick and then NetBeans 7 on my stick (editing the config-file so that it uses the Java from my stick) everything works fine.
But then it still uses the .netbeans-folder on my computer for all my settings. And when I edit it in the config-file so that it uses some folder on my stick then the program suddenly won't launch anymore. When I start the program I see the process appear in the task-manager and some seconds later it disappears again, without error.
Why?
To be clear, this is about the netbeans_default_userdir var in the netbeans.conf file.
[edit] YESSSS, FOUND IT!
apparently, the netbeans_default_userdir cant be in the same folder as where netbeans is installed. So I put it in it's parent-folder and now it works.
I am running Netbeans 6.7.1 on Windows XP with JDK and UML tools.
The steps were simple!
(Now you can uninstall JDK from your PC!!!)
#
"\PortableApps\netbeans\etc\netbeans.conf"
#
netbeans_default_userdir="${HOME}/.netbeans/6.7"
netbeans_jdkhome="\PortableApps\Java\jdk1.6.0_16"
#
NOTE: Make sure to use correct path for Netbeans and JDK!
This worked perfect for me. I hope it works for others too.
------
cheers
Prakash