How to force Eclipse to request a default workspace?

I noticed that after installing cdt, Eclipse always loads the default workspace. The osgi.instance.area.default specified in config.ini in osgi.instance.area.default . Eclipse does not ask which workspace to open, regardless of whether Prompt for workspace on startup installed or not.

How to make Eclipse ask which workspace loads at startup?

+85
eclipse eclipse-cdt workspace
Aug 14 '11 at 18:24
source share
18 answers

I had the same problem with indigo on linux 3.0 X86_64: After running eclipse -clean everything returned to normal.

Thanks to some comments on the eclipse issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=134412

+107
Sep 14 '11 at 8:32
source share

This works for me if I check the "Invitation to workspace at startup" checkbox, which you will find in Window> Settings> General> Startup and Shutdown> Workspaces.

NTN

+95
Aug 14 '11 at 18:52
source share

There is a file called org.eclipse.ui.ide.prefs /.settings configuration folder of your Eclipse installation. Open this file in a text editor and change the SHOW_WORKSPACE_SELECTION_DIALOG property from false to true.

Tested with Eclipse 3.7 on Windows.

+32
Apr 19 '12 at 16:41
source share

I use Eclipse Indigo, and so I do it:

Window> Settings> Startup and Shutdown> Workspaces

at the top of the window: "Request workspace at startup"

+24
Dec 24
source share

The "Prompt for workspace on startup" checkbox does not work. You can set the default workspace, find the folder named "configuration" in the Eclipse installation directory and open the file "config.ini". Youll edit "osgi.instance.area.default" to specify the default workspace you want.

+4
Sep 19 2018-11-11T00:
source share

Version: Ecliplse CIndigo Service Release 2

  • File> Switch workspace> Other ...
  • In the text box, type the path in the workspace or Browse

It automatically sets the default workspace during exit. To change Workspace, return to step 1.

+4
Aug 01 2018-12-12T00:
source share

I followed the thread and was tired of everything, but did not work. Finally, I saw that my goal of closing the shortcut is below

 C:\Eclipse_3.6\eclipse\eclipse.exe -clean -data "C:\workplace" ... 

I just removed the -data option and it worked. Now I have a pop-up window for selecting the workspace at startup.

greetings.

+3
Jan 14 '13 at 12:10
source share

I had the same problem (in Eclipse Juno), but I just wanted to change the default workspace to the one I use. There is a setting:

ECLIPSE_DIRECTORY / config / config.ini

which causes a particular workspace to load without requesting a workspace. If you just want to change the default workspace, you can simply change the value or add it if it does not exist:

osgi.instance.area.default=@user.home/some_workspace

or

osgi.instance.area.default = / some / absolute / path / some_workspace

+3
Jun 26. '13 at 18:02
source share

Running an eclipse using eclipse -clean did wonders for me.

+2
Jun 19 '13 at 9:13
source share

I can confirm that I have the same problem. I also use the eclipse classics with CDT. The funny thing is that he had just begun to happen earlier this evening. Before that, I was always invited to the workspace. Check "Request workspace at startup" does not affect. I do not start eclipse by running the script, so the -data flag is not set at startup. I removed the line "osgi.instance.area.default" from the /config.ini configuration, but this did not affect.

Some strange quirks related to this problem: if I delete the workspace workspace, it will be created again at startup. However, when I switch to one of my “real” workspaces, I notice that the “workspace” workspace is not specified as an option to switch.

As you might expect, reinstalling eclipse fixes the problem. But it would be better to find a way to solve the problem without resorting to it.

+1
Sep 13 '11 at 6:35
source share

Aptana 3.2.2

\ configuration.settings \ org.eclipse.ui.ide.prefs

Edit:

 RECENT_WORKSPACES=I\:\\PDT\\workspace 

It will check the last workspace, so just set it to what you want, I do this to disconnect the external drive.

+1
Oct 22 '12 at 18:15
source share

Go to window - Preferences - General - Startup and shutdown - Workspaces

The Request workspace at startup box opens. Select it.

Then, at startup, eclipse will ask you to select a workspace.

---- EDIT ----

On OSX, the path to the Eclipse (Juno) menu menu:

 Eclipse - Preferences 

In the settings dialog box, I selected the node tree:

  General - Startup and Shutdown - Workspaces 

The checkbox was checked from this panel.

 **Prompt for workspace on startup** 

I checked it, then turned off the eclipse and restarted it. This prompted me to create a new place in the workspace.

0
Aug 14 '11 at 19:10
source share

I had the same problem on my eclipse and calling eclipse -clean did not help solve the problem.

In the end, I realized that there is a script in the eclipse installation folder called eclipse. This script does some environment variable settings and then calls eclipse.bin. The call for eclipse.bin contained a command line switch

 -data ~/.eclipse 

When I removed this switch from running the script, I got a selection of the workspace as expected. Perhaps this helps others solve their problems.

0
May 14 '12 at 9:53 a.m.
source share

Editing the config.ini file with

 osgi.instance.area.default=\D:\\Projects\\Eclipse Workspace\\ 

worked for me.

0
Nov 19 '13 at 5:52
source share

At first I tried the -clean option, but this did not solve the problem.

Then I added the -data option with the correct path to the workspace.

This solved the problem for me.

0
Dec 04 '13 at 15:15
source share

I solved the problem by adding the -showLocation parameter to eclipse.ini

0
Dec 16 '13 at 13:15
source share

Sometimes you need to pay attention to how Eclipse starts. I ever riveted Eclipse by simply clicking on excutable and tying it to the taskbar. Thus, Eclipse is launched to use the settings in the c: \ User \ public \ public Documents \ eclipse directory, which is not very desirable.

However, if you bind it by creating a short fragment, it will start using the settings in the Eclipse installation folder. Then everything makes sense.

0
Sep 26 '14 at 20:26
source share

If your eclipse closes automatically at startup, you can do this: open the properties of your shortcut and add -clean at the end of the path. or do it in cmd: cd C: \ PATH_TO_YOUR_ECLIPSE \ eclipse -clean, as mentioned above comments

0
09 Oct '14 at 10:19
source share



All Articles