Accepted answer

for me it work to choose file->switch workspace->other... and it shows the name of current workspace.

i tried to confirm

"actually, this shows the last workspace that was closed, not the current workspace. if you are opening and closing several, this is not dependable."

and i am not able to reproduce it. each time i get the currently loaded workspace (i was testing on juno). i also checked sources and in and, and it looks like it manages simple list of last time opened workspaces which is stored as a recent_workspaces key in org.eclipse.ui.ide.prefs file. the workspace name shown in this dialog is the first one from this list.


simple logic...

just click on file menu then switch work place

click on other

then the dialogue pops up with current workspace highlighted on the top of the list. if you click on this list, other workplaces are shown.


clicking file->switch workspace gives the wrong result on my system.
this method gives the correct result:
file -> properties -> resource
now check the path in the third line labeled "location" in window labeled resource
it will show the workspace folder just before the project folder.


windnow -> preference -> general -> startup and shutdown -> workspaces - top one will be your current workspace.


  1. go to window -> preferences.
  2. search for workspaces & select.
  3. the top one is your current workspace.


file -> switch workspace


if you want to switch wokspace, then file->switch workspace. click "other" and choose appropriate folder. is that what you want? :)


i created an external tool launch configuration containing the following (exported echo-workspace.launch file content):

<?xml version="1.0" encoding="utf-8" standalone="no"?>
    <listattribute key="org.eclipse.debug.ui.favoritegroups">
        <listentry value="org.eclipse.ui.externaltools.launchgroup" />
    <stringattribute key="org.eclipse.ui.externaltools.attr_launch_configuration_build_scope" value="${none}" />
    <stringattribute key="org.eclipse.ui.externaltools.attr_location" value="c:\windows\system32\cmd.exe" />
    <stringattribute key="org.eclipse.ui.externaltools.attr_tool_arguments" value="/c echo &quot;${workspace_loc}&quot;" />

so that the workspace folder path is echoed in the console.

feel free to copy this into a .launch file and import it into eclipse: file > import ... > run/debug > launch configurations

i'll figure out a mac/unix version soon, as i was on indigo/win when i made this one.


you will often have to use multiple running eclipse instances at a time. to switch between them, it's helpful to set a name for the workspace that is displayed in the title of the eclipse window. to do this, open window/preferences. in the preferences window navigate to general/workspace and give every workspace an individual workspace name.


i got into a situation which caused eclipse startup to fail completely due to workspace corruption.

(similar to eclipse won't start, log error says: objectnotfoundexception: tree element)

it had been so long since i used eclipse that i forgot where my workspace was. this is where i found the setting.

~$ grep osgi.instance.area.default eclipse/configuration/config.ini osgi.instance.area.default=@user.home/documents/workspace


if you want to find the path programatically, use this:



check the path of any resource in the resource's properties. then you'll know. or: go to preferences > general > workspace and add a workspace name (shown in window title)


use the switch workspace from the file menu and you will know it


start eclipse with -data

example: c:\eclipse\eclipse.exe -data c:\workspaces\myworkspace1


-showlocation is great, but it only changes the text at the end of the title bar, so it's often not visible in the taskbar.

if you want to change the beginning of the title bar, which shows the current perspective, you can use window -> save perspective as... and the new title will be visible in the taskbar.


  1. go to file->switch workspace.
  2. you can see a list of workspaces excluding your current workspace.
  3. now go to the physical location and see which one is missing in the list.

the missing one is your current workspace.


i just found my current workspace with simplest way.

step 1:

start your eclipse (if default workspace is set, eclipse never ask for choose workspace or it will set to path which we have used last time)

step 2:

when eclipse start completely, try to start eclipse again with same shortcut/exe file. it will show you below error message and you will get your default/current workspace

enter image description here


(from most immediate to lesser (but more elegant), leaving out redundant ones)

  1. file > switch
    file->switch workspace->other... -> full answer
  2. help > about
    help -> about eclipse -> installation details -> configuration: osgi.instance.area ->full answer
  3. title bar (start-up parameter)
    if you start eclipse with -showlocation -> full answer
  4. title bar (naming workspaces)
    give each workspace a name -> full answer



select a file in the workspace and then use the menu: "file->properties". a dialog pops up and should show the 'location' of the file. read the location from right to left so you go through the class, package, folder, project, then you should see the workspace.


there's an environment variable called osgi.instance.area. you can find it via "help -> about eclipse -> installation details -> configuration" (for eclipse "helios" 3.6)

or, open the properties of any project, then select "resource". you'll find a "location" property which is structured like this:


note - the "erased" procedure works in most cases but can not be used in general, because a project folder does not have to be located in the workspace folder. you can choose external locations during project creation. so if you never uncheck the "use default location", the procedure is save. the first procedure is reliable.


if any project exists in the workspace:

select a project and its properties (e.g. menu: project -> properties or right mouse button->properties). then go to resource -> linked resources and the workspace_loc's path variable value shows the current workspace path.


eclipse neon (4.6)

according to m7, workspace name is shown in window title by default.

eclipse mars (4.5)

window > preferences > general > workspace

window preferences general workspace

there is also a check box "show workspace path in window title".
the result looks like this:
title bar

this feature is described here.


go window>preferences. then under general>workspace there is a property: "workspace name (shown in window title)" and put in some sort of identifying label.

you'll need to set this up for each workspace you have, but it's an easy way to know which workspace you're in at a glance.


start eclipse with -showlocation

here are two interesting posts about it:

top-10-tips-for-new-eclipse-users (archived version)


Related Query

More Query from same tag