You are here

NetBeans Portable

6 posts / 0 new
Last post
GOD1
GOD1's picture
Offline
Last seen: 13 years 11 months ago
Joined: 2010-04-07 13:34
NetBeans Portable

To all developers who are willing to help.

Recently I've created a portable version of NetBeans with Java bundle, the first one is the installer that has all components of NetBeans for it to run and the second was an installer that will download NetBeans OS independent zip in the temp directory and extract it on my thumb drive.

Now here comes the problem, every time I run the launcher it creates these directories which from time to time are getting bigger and bigger.

There are three directories namely .netbeans, .nbi, .netbeans-registration which are located at $PROFILE directory and the other was named NetBeansProjects which is located at $DOCUMENTS directory.

Please give me some advice on how I could redirect NetBeans' directories and store the up in my thumb drive without messing local directories.

Also while browsing PortableApps.com website I came up with NetBeans portable with php bundle and I wonder how did the author deal this directory problems.

I am a programming student and I only rent computers at computer shops and Java is one of our major subjects. Making it portable would be a great help for my course.

Thanks a lot.
-Richard, from Philippines

vf2nsr
vf2nsr's picture
Offline
Last seen: 8 years 2 months ago
Developer
Joined: 2010-02-13 17:10
Have you

asked him in his forum topic? Perhaps if you download his and look it over it may give you some incite?

“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” Dr. Seuss

flybyray
Offline
Last seen: 13 years 5 months ago
Joined: 2010-03-27 08:12
You can see his code

You can see his code at
https://github.com/caseyn/NetbeansPortable/tree/master/NetbeansPortable

Did you tried his Launcher? It is also creating local modifications which not reside on the usb drive.

There exist a bug report at netbeans
http://netbeans.org/bugzilla/show_bug.cgi?id=168443

Even if one sets the appropriate parameters, those directories are still being written into incorrect directories.

VERY SAD!!! Sad

flybyray
Offline
Last seen: 13 years 5 months ago
Joined: 2010-03-27 08:12
I have setup some write

I have setup some write permissions on those directories and watched the log files of netbeans for an error.
It was only one error with org-netbeans-modules-registration .
I renamed the coresponding jar and started my netbeans portable again.
It gives a warning that a module could not be found. It ask if i want to disable it and continue.
There is a possibility to disable those modules. Who wants to register with netbeans? Biggrin

flybyray
Offline
Last seen: 13 years 5 months ago
Joined: 2010-03-27 08:12
i found the problem

i found the problem here

http://hg.netbeans.org/releases/file/b56a9a39a140/reglib/src/org/netbean...

in line 146:
svcTagDirHome was initilized with wrong USER_HOME. It should be USER_DIR

That is for the register module problem.

superId is also evaluated by NbServiceTagSupport, but i didnt look up where it comes from.

GOD1
GOD1's picture
Offline
Last seen: 13 years 11 months ago
Joined: 2010-04-07 13:34
User Directories

So there is nothing we can do about these directory problems? Is there no other way but to let netbeans create this directories and let them to become bulky from time to time that we start netbeans portable?

here is the link to the netbeans launcher that i created..

NetBeansLauncher

sorry with the mediafire thing.

i did check out the netbeans portable link and there is no source code for the launcher.

No matter how gifted you are, you alone can not change the world.

Log in or register to post comments