Change location where eclipse create .eclipse, .p2, and other folders

后端 未结 2 1699
谎友^
谎友^ 2021-01-17 16:35

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

相关标签:
2条回答
  • 2021-01-17 16:38

    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
    
    0 讨论(0)
  • 2021-01-17 16:39

    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. passwords
      • org.eclipse.oomph.* - see Window > Preferences: Oomph
      • org.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 Gradle

    Additional 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"
    
    0 讨论(0)
提交回复
热议问题