Quote:
One problem I can see with this is that, although Java is getting MORE portable, right now the JDK is something you have to physically install.
I did install this (JDK) to my external drive (like the way you have to install so many programs and then copy to a pen to work portable) and i unzipped the Zipped version of
NetBeans to my external drive too.
Then, to make sure this works, i have copied the 2 folders to a computer with only Windows installed.
Quote:
Also, do you know of a way to make those config files use relative (rather than static) pathways?
Then, i make the changes to config file like the way i explained to match the new folders. Using relative paths. Example: "/JavaSEDevelopmentKit" (for the JDK) and "/NetBeansConfig" for the folder where the
NetBeans will save his configuration files.
netbeans_jdkhome="/JavaSEDevelopmentKit"
netbeans_default_userdir="/NetBeansConfig"
Attention that the configuration files can't be in the same folder where the
NetBeans reside. This is a limitation of the
NetBeans, don't know why, but that is not a problem, because everything is in a relative path in the portable drive.
So, what i did after this is run the
netbeans executable file present in "
netbeans/bin" folder.
And it worked immediately. So, no need to have Java Runtime installed or Java Development Kit in that computer. This was done in a newly computer right after the installation of Windows XP. And i only copied the
NetBeans and Java Development Kit, no installation done.
I even make a simple class in Java and run it inside
NetBeans to make sure it worked.
I can say that i'm using this, like this, for 1 week, is not too long, but it's working with me and i have already used 5 different computers.
Hope this helps.