You are here

NetBeans Portable w/ Java SDK

9 posts / 0 new
Last post
neriksmoen
Offline
Last seen: 16 years 12 months ago
Joined: 2007-04-02 17:57
NetBeans Portable w/ Java SDK

It would be nice to have some sort of NetBeans portable version. It would be nice if it could be bundled with various Java SDK versions so a Java Developer could choose whichever app to use based on their targeted Java audience...

At work with no "Admin" accessibility to install Java SDK or NetBeans, this would be a great help... if at all possible...

johnniepop
Offline
Last seen: 15 years 2 weeks ago
Joined: 2007-04-04 13:55
Portable JAVA

Making a full fledged IDE like netBeans portable would be really intresting to see. And an enormous gain. Yet I thing it would be quite a task. But in my opinion it wouldn't be so dificult to pack few Java tools along with the compiler. After all it is done with Python (http://www.portablepython.com/).

Greetings,
JP

Machete
Offline
Last seen: 11 months 1 day ago
Joined: 2005-12-21 15:32
It's already as portable as Dev-C++,

all you need to do is give it the right parameters.

For instance, on my Java development flash drive, I use PStart, and have it give Netbeans the following parameters:

--jdkhome "%pdrive%\PortableApps\jdk1.6.0\" --userdir "%pdrive%\PortableApps\netbeans-5.5\userdir\"

The first one tells NetBeans where the JDK is we want to use, the second one where we want our user-specific stuff (config, etc) stored.

And it really wouldn't take much effort to bundle a JDK with this and make a paf installer/launcher. I'd do it, myself, but I'm still trying to get the next release of my UltraVNC Viewer Portable ready.

RustyMuppet
RustyMuppet's picture
Offline
Last seen: 9 years 10 months ago
Joined: 2007-03-02 05:44
Updates not working

I followed this and Netbeans seems to work.

One problem i seem to have is that going through the update process, it downloads stuff without a problem, but on restarting the IDE to install them it fails to do so. Instead either bombing out or just restarting without installing anything.

Did you have to do anything special to get this to work or do you not install the updates?

Thanks in advance

Machete
Offline
Last seen: 11 months 1 day ago
Joined: 2005-12-21 15:32
I don't think I've had a

I don't think I've had a problem with updates, it's just kinda worked for me so far. It sounds kinda like the update process is simply trying to run the IDE without any parameters after downloading the updates, rather than using the ones you've given it.

I guess I'll have to play around with it a little this week when I have time (most likely Friday or Saturday), maybe there's some combination of things that break the "portability" parameters?

Machete
Offline
Last seen: 11 months 1 day ago
Joined: 2005-12-21 15:32
Well, I've not been able to duplicate your problem, and

I've updated all *currently* installed modules that had updates without any problems, using the built-in update manager (Tools->Update Center). It downloaded all selected packages, restarted the IDE, and installed the updated packages without any problems.

One thing it might be, though, is that since it was an actual *system-level* update, I opted for these updates to be applied "Globally", which means they get installed in the actual program directories, rather than your personal, user directory.

Normally, if it's a system-level update, such as a hotfix for the program itself, I install it globally, and all others get installed "locally" or in the user directory.

It looks like I'll need some more info to work with this one. Which updates are you trying to install, and are you trying to install them with the "Global" box checked? This next question is gonna sound kinda silly, but: are the directories specified in the --jdkhome and --userdir parameters actually exist? (These DO have to be absolute paths, with drive letters and all, rather than relative ones.)

RustyMuppet
RustyMuppet's picture
Offline
Last seen: 9 years 10 months ago
Joined: 2007-03-02 05:44
I use for my

I use for my parameters:

--jdkhome "%pdrive%\PortableApps\Java\jdk1.5.0_09\" --userdir "%pdrive%\PortableApps\netbeans-5.5.1\userdir\"

Both do exist. I dont select global so it restarts the IDE to install, but this doesnt work and when the IDE restarts the updates are seen again in the update section.

All I could think of is that the parameters are ignored when restarting to apply updates, so the directories couldnt be found. Not positive though.

I tried to install loads of updates initially. Then eventually I just picked the first in the list. No joy Sad

I just tried global and that worked! So obviously a problem with the userdir setting when installing updates (I think)

Machete
Offline
Last seen: 11 months 1 day ago
Joined: 2005-12-21 15:32
Looks like it - kinda

Looks like it - kinda figures tho, for a portable-app. Looks like for a portable NetBeans install, all the updates are going to have to be installed "Globally". Hopefully they get that taken care of in a future release/update.

liniaal
Offline
Last seen: 16 years 6 months ago
Joined: 2007-09-10 06:35
YES!

thanks for your comments, i was very annoyed not being able to do this, but installing 'generally' helps get every problem out of the way

Log in or register to post comments