You are here

Got a problem with making NetBeans 7 portable

2 posts / 0 new
Last post
Evertt
Offline
Last seen: 15 years 9 months ago
Joined: 2009-03-27 16:04
Got a problem with making NetBeans 7 portable

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

spabhat
Offline
Last seen: 15 years 3 months ago
Joined: 2009-01-26 10:13
The following method worked for me perfectly.

I am running Netbeans 6.7.1 on Windows XP with JDK and UML tools.

The steps were simple!

  1. Download and install JDK.
  2. Copy the JDK Folder to PortableApps folder.
    (Now you can uninstall JDK from your PC!!!)
  3. Download platform independent Netbeans ZIP file.
  4. Extract the ZIP to a subfolder named netbeans inside the PortabelApps folder.
  5. Now edit the Netbeans oconfiguration file located at following URL.
    #
    "\PortableApps\netbeans\etc\netbeans.conf"
  6. Add the following two lines of code at the end.
    #

    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

Log in or register to post comments