For all you coders out there, I have come across config file in the NetBeans Directory (\NetBeans\etc\netbeans.config). In there the important parts read as follows:
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="[Your JVM user.home Path]"
# default location of J2SE JDK, can be overridden by using --jdkhome switch
netbeans_jdkhome="[Your JDK Path]"
Now here comes the important part:
Step 1. Change '[Your JVM user.home Path]' to something like '.\netbeans\5.5' that way the program looks for the folder in relation to its current folder and not a drive letter.
Step 2. Change '[Your JDK Path]' to the path of the JDK on you portable drive except using '.\'s (ie ".\JDK\") instead of drive letters so NetBeans looks for the files in relation to folders and not the drive letter.
*NOTICE*
I did NOT change any copyrighted material, all the compiled files are in their original form. The only thing I changed was the config file. I need some people with more portable app experience to run this and see if I am missing anything. Also, I am not responsible for any damage to your machine in case you royally screw something up, do not know how that would be possible but gotta cover my own a$$.
Anything I am missing please e-mail me at fleury29[at]gmail.com
[Moderator RM: Changed @ to [at] to help you avoid spam ]
PS
Don't forget to dl the awesome add-ons on the netbeans site which include a C/C++ compiler, and the web development addon.
Have Fun Coding!
the error message says and i quote " Need to specify userdir using command line option --userdir"
Im not sure what todo from here. plz advise
work smarter, not harder
work smarter, not harder
If you're using a launcher like PStart, create a new file icon for netbeans.exe, and give it the following parameters:
--jdkhome "%pdrive%\PortableApps\jdk1.6.0\" --userdir "%pdrive%\PortableApps\netbeans-5.5\userdir\"
Make sure to change the --jdkhome parameter to match where it is on your drive, as well as the --userdir to match where you want your personal settings/projects/etc put.
It really works for me, using Netbeans 6.0 with only JAVA SE!
Thanks a lot!
I wonder why the "portable version" of mine cannot run netbeans.exe?
Everytime I run it, the java.exe runs then ended.
Thank you.
Have you tried it from a command window (java, not javaw), or set up logging so you can see what is going on? Maybe an error message will say what is bothering it.
MC