Get the new PortableApps.com Platform 10.0: Gorgeous themes, a full portable app store and advanced functionality
Announcing the World's Best Flash Drive: The PortableApps.com Companion | Did you see a malware warning on Friday?

Got a problem with making NetBeans 7 portable

Evertt - March 27, 2009 - 3:12pm

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. Laughing out loud


( categories: )

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