Change .Eclipse Folder in Linux

Change .eclipse folder in Linux

The simplest thing to do is probably pass java a different user.home so that all the other myriad of places that derive a location base it off of user.home. So instead of what you have, use this in .ini file:

-Duser.home=/directory/other/here

In addition to .eclipse, you will probably find other directories created in your overridden user.home, such as .p2, .oracle_jre_usage, etc.

Other notes:

-Dosgi.configuration.area is the changes the configuration area for Eclipse, it does not effect user area. You also probably don't want to change that setting away from the default unless you really want multiple configurations (read more below).

Additionally, the normal thing to do would be to use -configuration as an argument to eclipse{.exe} and let eclipse convert it to the appropriate VM argument.

You probably want -user though to override the user area. Have a look at locations in the Eclipse help for more info (quoted below).

However, there are still things that have individual control over their location, such as secure storage, which is controlled by the -eclipse.keyring command line argument.

Locations

The Eclipse runtime defines a number of locations which give
plug-in developers context for reading/storing data and Eclipse users
a control over the scope of data sharing and visibility. Eclipse
defines the following notions of location:

User (-user) {osgi.user.area} [@none, @noDefault, @user.home,
@user.dir, filepath, url]

User locations are specific to, go figure,
users. Typically the user location is based on the value of the Java
user.home system property but this can be overridden. Information such
as user scoped preferences and login information may be found in the
user location.

Install (-install) {osgi.install.area} [@user.home,
@user.dir, filepath, url]

An install location is where Eclipse itself
is installed. In practice this location is the directory (typically
"eclipse") which is the parent of the eclipse.exe being run or the
plugins directory containing the org.eclipse.equinox.launcher bundle.
This location should be considered read-only to normal users as an
install may be shared by many users. It is possible to set the install
location and decouple eclipse.exe from the rest of Eclipse.

Configuration (-configuration) {osgi.configuration.area} [@none,
@noDefault, @user.home, @user.dir, filepath, url]

Configuration
locations contain files which identify and manage the (sub)set of an
install to run. As such, there may be many configurations per install.
Installs may come with a default configuration area but typical
startup scenarios involve the runtime attempting to find a more
writable configuration location.

Instance (-data) {osgi.instance.area}
[@none, @noDefault, @user.home, @user.dir, filepath, url]

Instance
locations contain user-defined data artifacts. For example, the
Resources plug-in uses the instance area as the workspace location and
thus the default home for projects. Other plugins are free to write
whatever files they like in this location.

While users can set any of
these locations, Eclipse will compute reasonable defaults if values
are not given. The most common usecase for setting location is the
instance area or, in the IDE context, the workspace. To run the
default Eclipse configuration on a specific data set you can specify:

eclipse -data c:\mydata

Where does Eclipse look for eclipse.ini under Linux

There is only one file.

lrwxrwxrwx 1 root root 16 Aug 8 2012 /usr/lib/eclipse/eclipse.ini -> /etc/eclipse.ini

Eclipse config locations on linux

Most preferences like theme, color and fonts, etc. are stored in the subfolder .metadata of the workspace.

If you switch to another workspace (File > Switch Workspace > ...) you will see, which preferences are workspace specific and which are not.

In some cases, the Restore Defaults button in the Preferences dialog (e. g. in Window > Preferences: General > Appearance > Colors and Fonts) can be used to restore the default preferences.

How to change the Eclipse default workspace?

If you mean "change workspace" go to File -> Switch Workspace

How can I change a project's location pointer in Eclipse?

Delete the project from eclipse.

ENSURE THAT THE CHECK BOX is UNSELECTED, during this delete

And then import the project by File -> Import -> Import existing project and choose it from the new location.

Don't try to modify the eclipse files manually!

Moving Eclipse Workspace from ~ to new directory?

Do the following steps:

  • close all the projects in workspace
  • close Eclipse
  • move the directory .metadata from ~ to ~/workspace
  • open Eclipse and when prompted for the workspace selection set it to ~/workspace


Related Topics



Leave a reply



Submit