I see that eclipse create in my user home folder some folders like .eclipse .p2 etc... I want change this default folder(I want save all in a D: location.). I read this Chan
An easy way to do something similar is to move the directory to a desired location and then create a symbolic link to user directory.
Example: The new .p2
location is D:\Programmi\Eclipse\.p2
Open CMD console as Administrator and execute the following:
mklink /D C:\Users\your-user\.p2 D:\Programmi\Eclipse\.p2
Some Eclipse plug-ins store data that are intended to be used by multiple Eclipse installations in subdirectories of your home directory. For example, the Eclipse IDE for Java Developers uses following directories:
.eclipse
org.eclipse.epp.logging.aeri
- Automated Error Reporting (AERI)org.eclipse.equinox.security
- secure storage for e. g. passwordsorg.eclipse.oomph.*
- see Window > Preferences: Oomphorg.eclipse.recommenders.models.rcp
- Eclipse Code Recommenders.m2
- Maven repository used by M2Eclipse.p2
- Equinox p2 (install/update subsystem).tooling
- used by the Eclipse plug-ins for GradleAdditional plug-ins might or might not use additional directories to store data.
The trick is to set the home directory used by Java/Eclipse by adding the following line after the line -vmargs
to your eclipse.ini
:
-D"user.home=D:/Programmi/Eclipse/home"