score:112
I had the same problem with indigo on linux 3.0 X86_64:
After runnning eclipse -clean
everything went back to normal.
Thanks to some comment on the eclipse issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=134412
score:0
Go to Window → Preferences → General → Startup and Shutdown → Workspaces (or Eclipse → Preferences → ... on macOS)
Check the checkbox Prompt for workspace on startup
Then at startup Eclipse will ask for workspace selection.
score:0
I had the same problem on my Eclipse, and calling eclipse -clean
did not solve the problem.
In the end I figured out that within the installation folder of Eclipse there is a script called eclipse
. This script does some setting of environment variables and then calls eclipse.bin
. The call for eclipse.bin
contained the this command-line switch:
-data ~/.eclipse
When I removed that switch from start-up script, I got the workspace selection as expected.
score:0
Editing the config.ini
file with
osgi.instance.area.default=\D:\\Projects\\Eclipse Workspace\\
worked for me.
score:0
I first tried the -clean
option, but that didn't solve the problem. Then I added the -data
option with the correct path to the workspace, which worked.
score:0
I resolved the problem by adding the -showLocation
flag to eclipse.ini
.
score:0
Sometimes you need to pay attention to howw Eclipse is launched. I ever pinned Eclipse by rigk-click on the excutable and pinning it to taskbar. In this way, the Eclipse is launched to use settings under c:\User\public\public Documents\eclipse" which is not very desirable.
However, if you pin it by creating a short-cut, then it will launch to use settings in the folder of Eclipse installation. Then everything makes much more sense.
score:0
If your Eclipse is auto-closing at startup you can
- Open the properties of your shortcut and add
-clean
at the end of the path, - Or, in a command prompt, run
C:\PATH_TO_YOUR_ECLIPSE\eclipse -clean
like mentioned in the comments and other answers
score:0
I'd recommend you to create a shortcut to eclipse.exe with the -data
command line option. This way you can create a separate shortcut to each workspace you use, and avoid unnecessary dialogs and mouse clicks.
Windows: Just create an Eclipse shortcut on your desktop, then right-click to open Properties
and under Shortcut
set something like this as Target
: C:\eclipse\eclipse.exe -data C:\Path\to\your\workspace1
. This will launch Eclipse and automatically open workspace1
.
Repeat the steps for all the workspaces you use often.
score:1
I can confirm that I am having the same issue. I am also using Eclipse classic with CDT. The funny thing is that it only started happening earlier this evening. Before then, I was always prompted for the workspace. Checking Prompt for workspace on startup has no effect. I am not launching eclipse using a startup script, so the -data
flag is not set on launch. I have removed the line osgi.instance.area.default
from the configuration/config.ini
file, but that had no effect.
A few strange quirks that are incidental to this problem: If I delete the workspace
workspace it creates it again upon launch. However, when I switch to one of my "real" workspaces I notice that the workspace
workspace is not listed as an option to be switched to.
As would be expected, reinstalling Eclipse resolves the issue. But it would be nicer to find a way to fix the problem without resorting to that.
score:1
Under Aptana 3.2.2, in \configuration\.settings\org.eclipse.ui.ide.prefs
, edit:
RECENT_WORKSPACES=I\:\\PDT\\workspace
It will check the recent workspace, so just set it to what you want. I do it for running off an external drive.
score:3
I followed the thread and tired all things but didn't work. Finally I saw that my eclipse shortcut target is like below
C:\Eclipse_3.6\eclipse\eclipse.exe -clean -data "C:\workplace" ...
I simply removed -data option and it worked. Now I got popup to choose workspace at startup.
cheers.
score:3
Starting eclipse with eclipse -clean
did wonders for me.
score:3
I had the same issue (in Eclipse Juno), but I just wanted to change the default workspace to the one I'm using
There's a setting in ECLIPSE_DIRECTORY/configuration/config.ini
that is causing a specific workspace to be loaded without prompting for a workspace. If you just want to change the default workspace, you can just modify the value or add it if it doesn't exist:
osgi.instance.area.default=@user.home/some_workspace
or
osgi.instance.area.default=/some/absolute/path/some_workspace
score:4
The “Prompt for workspace at startup” checkbox did not working. You can setting default workspace, Look for the folder named “configuration” in the Eclipse installation directory, and open up the “config.ini” file. You’ll edit the "osgi.instance.area.default" to supply your desired default workspace.
score:4
Version: Eclipse CIndigo Service Release 2
- File > Switch Workspace > Other...
- In the textbox, write the path in the Workspace or Browse
It automatically sets the default Workspace during exit.
score:26
Using Eclipse Indigo this is how I did it:
Window → Preferences → Startup and Shutdown → Workspaces
Check the box at the top of the window that says "Prompt for workspace on startup"
score:35
Inside the configuration/.settings
folder of your Eclipse installation, there is a file called org.eclipse.ui.ide.prefs
. Open this file in a text editor and change the property SHOW_WORKSPACE_SELECTION_DIALOG
from false
to true
.
Tested with Eclipse 3.7 on Windows.
score:114
It works for me if I tick the box Prompt for workspace on startup, which you can find in Window → Preferences → General → Startup and Shutdown → Workspaces.
Source: stackoverflow.com
Related Query
- How to force Eclipse to ask for default workspace?
- How to change default JRE for all Eclipse workspaces?
- How can I set Chrome as default external browser in Eclipse for Mac?
- How can I set the default code formatting and template for a new workspace
- How to disable "No Default Proposals" in eclipse content assist for PHP?
- Why does NOT my Eclipse ask for workspace on startup?
- How do you add a PHP framework to code completion/assist in Eclipse PDT and can the framework be added as default for all projects?
- Default workspace settings for customized Eclipse distribution
- How to make Maven use Eclipse workspace default JRE?
- How to set multiple default source folders in Eclipse IDE for Java?
- How do I get the file path of the open workspace for developing plugins in eclipse
- How do I set a default toolchain in Eclipse C++ / CPP for new projects?
- Android Eclipse > Graphical Layout: How to Set Default Layout = Nexus 7 or Not 2 for every XML layout I open to look same in IDE and Device
- How to setup the project & workspace for building Androlate; an Eclipse Plugin
- How To Use A Relative Path For The Eclipse Workspace
- How to I edit the default "formatter profile" in eclipse neon? (wanting to use spaces instead of tabs for all code types)
- how to set default permissions for local files newly checked out of subversion via eclipse
- Eclipse how to select needed file for debug if one source file mentions from two projects within workspace
- How do I "install dependencies" in Eclipse "using File > Import > Install Software Items from File" to setup a bootstrap workspace for Mylyn?
- How to make default indentation for parenthesis the same as for braces in Eclipse in Java?
- How to create RCP project without a workspace and other Eclipse default features?
- How to create default template for js, css files in eclipse
- how to change the foreground color of the default Matching item for Eclipse in dark theme?
- How to set default encoding and line delimiter in eclipse down to the workspace catalogues tree to UTF-8 and Unix automatically?
- how to create a different workspace in eclipse for different users?
- Why ANT does not peak up Eclipse workspace default JRE for build
- How can I change default settings in Eclipse for CSS and HTML
- How to turn off the Eclipse code formatter for certain sections of Java code?
- How to change font size in Eclipse for Java text editors?
- How to install plugin for Eclipse from .zip
More Query from same tag
- Install pydev on eclipse juno
- Unable to locate and switch to iframe using Eclipse with Selenium webdriver Java
- Let's solve the "Failed to find style 'mapViewstyle' in current theme" error
- Make host application to see .so library while debugging
- Eclipse Run not asking how to run as, and opens wrong file
- How to stop Eclipse 3.4 losing reference to the JRE in projects
- Can't preview Android XML layout - LayoutLib is too recent. Update your tool?
- How I can speed up the build process using Maven
- How to switch from Button to FrameLayout based on login status
- Hudson style build reports on developer machines/within Eclipse
- java.lang.IllegalArgumentException: The main resource set specified [...] is not valid
- Teamcity Compilation error: javac Class not found: javac1.8
- Folding of PHPDoc comments on open not working in Eclipse Luna (why)?
- How to deal with interface errors in Eclipse
- Hibernate tools and SQL server with integrated security
- Beyond CVS Eclipse Plug-In Problem
- android studio proguard confusion
- How do I get a specific Activity to show up in a Scrollable Tabs?
- Imported Code from Github into Eclipse. Getting build path error
- Eclipse Kepler shows error marks on warnings
- Running PlayN in HTML DevMode
- Ctrl + W shortcut of IntelliJ idea equivalent in MyEclipse
- Samsung Galaxy 7" (GT-P6210) not detecting for USB debugging?
- Deploying from eclipse to glassfish 4.1.2 - Missing classes
- Having multiple perspectives open at the same time in Eclipse
- Find the n-th Digit of a Number
- Library is not copied to Tomcat directory when deploying
- Multiple errors while building Spring MVC project on Eclipse
- Open Call Hierarchy fails in Eclipse on class functions
- Eclipse Runnable Jar Export Not Launching