You are here

NetBeans Portable

6 posts / 0 new
Last post
fleury29
Offline
Last seen: 16 years 9 months ago
Joined: 2006-01-11 14:27
NetBeans Portable

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 Smile ]

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. Biggrin

Have Fun Coding!

popeye6554
Offline
Last seen: 17 years 2 months ago
Joined: 2007-02-07 17:09
tried it, didnt work

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

Machete
Offline
Last seen: 1 year 1 week ago
Joined: 2005-12-21 15:32
It's actually simpler than that.

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.

maybeme
Offline
Last seen: 16 years 4 months ago
Joined: 2008-01-06 12:05
Works!

It really works for me, using Netbeans 6.0 with only JAVA SE!

Thanks a lot!

ariefwt
Offline
Last seen: 16 years 3 months ago
Joined: 2006-07-20 07:59
Why not working for me?

I wonder why the "portable version" of mine cannot run netbeans.exe?

Everytime I run it, the java.exe runs then ended.

Thank you.

rab040ma
Offline
Last seen: 3 weeks 6 days ago
Joined: 2007-08-27 13:35
Have you tried it from a

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

Topic locked