[Problem] Installed NetBeans 6.9
The problem is that NetBeans has chosen to store all its cache, config etc. files on my ECN profile path (C:\Documents and Settings\<myusername>\.netbeans\6.9). This network will synchronise profile information onto a profile server, and there is limitation to each one with an allotted fixed amount of space for application data, temporary files etc. The file server is synchronised with all files contained at the users home directory (i.e. C:\Documents and Settings\<myusername>\) and the .netbeans directory cause my profile exceed the allowed storage space about 13Mb
[Solution]
-1- Follow the instruction on <http://wiki.netbeans.org/FaqAlternateUserdir>
-2- Use the window command line
-3- We cd to the dir of NetBeans/bin --- this is where we installed the NetBeans
-4- Then do this on the command line: netbeans.exe --userdir C:\MyOtherUserdir ----this is where you would like to store all the caches
Notes: when you run this it will start the NetBeans and all the caches will be allocated in your preferred directory
At the same time, we notice that the conf file in <C:\Program Files\NetBeans 6.9.1\etc> has been changed
from
# ${HOME} will be replaced by JVM user.home system property netbeans_default_userdir="${HOME}/.netbeans/6.9"
to
# ${HOME} will be replaced by JVM user.home system property netbeans_default_userdir="c:\temp\netbeans"
(we use C:\TEMP\NETBEANS as the C:\MyOtherUserdir -- which we input on the command line above)
We now can start the NetBeans normally, and it will automatically allocate the cashes into your user specified directory.
To make it permanently, check the link: How do I make startup options permanent?
====Below are the content posted at: <http://wiki.netbeans.org/FaqAlternateUserdir>
FaqAlternateUserdir: Can I run NetBeans with an alternate "userdir"? Can I move the .netbeans directory?
Yes. Running NetBeans with a non-default userdir can be useful in various scenarios:- You want to temporarily run NetBeans with different settings (window layouts, font settings, etc.) and revert to the default later.
- You want to run multiple instances of the same NetBeans version simultaneously .
- You've run into problems and want to exclude the possibility of corrupted settings. When evaluating a bug report, NetBeans developers often ask if the problem is reproducible with a clean userdir - this is what they mean.
- Your default installation is on a slower drive, and you want the userdir to be located on a faster one.
Changing the userdir
You can specify the new location for the .netbeans userdir via the --userdir <path> startup option when starting NetBeans. Learn how to make startup options permanent .The <path> argument may refer to an existing or a new folder name. If pointing to an existing dirctory, it will be reused. If you provide a non-existent path, a new userdir will be created by NetBeans.
Examples
- Windows:
netbeans.exe --userdir C:\MyOtherUserdir
- Unix:
./netbeans --userdir ~/my-other-userdir
- Mac OS:
/Applications/NetBeans.app/Contents/MacOS/executable --userdir ~/my-other-userdir
Applies to: NetBeans 3.6, 4.x, 5.x, 6.x
Platforms: All
Links
====Below are the content posted at: <http://wiki.netbeans.org/FaqNetbeansConf>
How do I make my custom startup parameters permanent?
To make start-up parameters from the command line permanent, you add them to the netbeans.conf file. You may use this plugin to edit the netbeans.conf file more easily (thanks to Claudio Miranda).
If you want NetBeans to always start with some specific options such as --userdir , --jdkhome , --fontsize , etc., you might be tempted to write a wrapper script around the NetBeans launcher so that you don't have to type them on the command line. A wrapper script will work, of course, but a better way is to put your custom options into the NetBeans configuration file --netbeans.conf.
Finding the Configuration File
There are actually two versions of the netbeans.conf file, a global and a local one.
Global: If you want to change the settings globally for all users using a shared NetBeans installation, modify the global instance of the file. You find it in the NetBeans installation directory:
${nb-install}/etc/netbeans.conf
Local: To make individual changes that will apply only to a specific user, put them into the etc/netbeans.conf file in the user's userdir .
${userdir}/etc/netbeans.conf
The local file does not exist by default! If you don't see a ${userdir}/etc directory you have to create the file yourself. The easiest way to do that is to copy the global netbeans.conf file from the NetBeans installation folder to the local ${userdir}/etc folder, and then make the desired changes.
Examples of the netbeans.conf file path:
On Mac OS: Ctrl-click /Applications/NetBeans/NetBeans IDE 6.5.app in the Finder and choose 'show package contents', then browse to /Applications/NetBeans/NetBeans\ IDE\ 6.5.app/Contents/Resources/NetBeans/etc/netbeans.conf.
On Windows: C:\Program Files\Netbeans\etc\netbeans.conf
On Linux the installer lets the user choose where you want to install NetBeans. You may find it under /home/yourname/netbeans/etc/netbeans.conf or /opt/netbeans/etc/netbeans.conf.
Editing the Configuration File
The netbeans.conf file can include the following entries:
- netbeans_default_userdir
- The default location and name of the userdir . Note that this entry is only valid in the global configuration file. (It cannot be redefined in the local netbeans.conf file, because the launcher already needs to know the location of the userdir when the local netbeans.conf file is being processed.)
- netbeans_default_options
- Any parameters passed to the JVM or NetBeans during start-up, such as memory configuration parameters, debugging options, --fontsize , Look and Feel switches, various experimental switches, etc..
- netbeans_jdkhome
- The default location of the JDK to run NetBeans on. Can be overriden with the --jdkhome switch.
- netbeans_extraclusters
- The paths to additional NetBeans clusters separated by colons (Unix, Macintosh OS X), or semicolons (Microsoft Windows).
When you need to embed spaces or quotes inside a command-line option, use a backslash escape character before each quote. For example, netbeans_default_options="-J-client ... -J-XX:OnError=\"userdump %p\""
Any line in netbeans.conf starting with '#' is a comment. Comments are ignored during processing.
The startup options and settings passed into NetBeans via the command-line and the ones found in configuration files may overlap. The conflicting options are resolved by the following rules:
- Settings in local version of netbeans.conf override the same settings in the global copy of the file.
- Command-line options override settings in either of the configuration files.
Examples of the netbeans.conf file content:
A typical content of the global netbeans.conf file may look like this:
# ${HOME} will be replaced by JVM user.home system property netbeans_default_userdir="${HOME}/.netbeans/6.9" # Options used by NetBeans launcher by default, can be overridden by explicit # command line switches: netbeans_default_options="-J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dnetbeans.winsys.statusLine.in.menuBar=true -J-Dsun.java2d.noddraw=true" # Default location of JDK, can be overridden by using --jdkhome <dir>: netbeans_jdkhome="C:\Program Files\Java\jdk1.6.0_20" # Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix): #netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"
[A same problem] http://markmail.org/message/32ga2gjt2loqhbpr
If Netbeans does not work and show the case that requiring the compiler, install the cygwin on local, and configuration as below:
♥ ¸¸.•*¨*•♫♪♪♫•*¨*•.¸¸♥
No comments:
Post a Comment