How to change the Eclipse default workspace?

后端 未结 15 1111
难免孤独
难免孤独 2020-11-30 17:10

Where can I change the default workspace in Eclipse?

相关标签:
15条回答
  • 2020-11-30 18:03

    File > Switch workspace > add the workspace you like > Eclipse will restart using the workspace you wanted.

    0 讨论(0)
  • 2020-11-30 18:06

    This is the only answer you got first when you search for default workspace, but any solution is not solved my problem, So I follow this step for a default workspace:

    1. First copy shortcut icon for your eclipse.
    2. Right click and go to properties, add your workspace path with -data attribute,

    In Target:

    D:\eclipse_path\eclipse.exe -data D:\workspace_path\workspace

    For using the same shortcuts and preference into this workspace, Export general --> preference from your working eclipse, it will generate one .epf file.

    So, just import .epf file into your new workspace, and you are done.

    0 讨论(0)
  • 2020-11-30 18:07

    If you are talking about changing the working directory for a java program that you launch from within eclipse, then there's a space for that in the run configuration. If you go to Run menu and select "Run Configurations..." then select your run configuration, then on the "Arguments" tab for a Java Application there is a place for you to edit the "Working directory". This alters the current directory that will be used for launching the java program.

    See related question Default eclipse working directory if this is what you are meaning.

    0 讨论(0)
  • 2020-11-30 18:07

    If you mean to change the directory in which the program execution will occur, go to "Run configurations" in the Run tab.

    Then select your project and go to the "Arguments" tab, you can change the directory there. By default it is the root directory of your project.

    0 讨论(0)
  • 2020-11-30 18:07

    My kepler eclipse went into not responding at boot (shortly after installing GAE support) which I traced to a corrupt workspace. I fixed this by closing kepler, renaming the workspace directory (in use) so kepler starts normally without a workspace, then used file >> switch workspace to generate new workspace. Then started populating that with my old projects that I still needed.

    0 讨论(0)
  • 2020-11-30 18:10

    If you want to create a new workspace - simply enter a new path in the textfield at the "select workspace" dialog. Eclipse will create a new workspace at that location and switch to it.

    0 讨论(0)
提交回复
热议问题