• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Finding the Workspaces Directory

 
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello I am inheriting a system from another developer. I have searched for Eclipse's "workspaces" directory and cannot find anything in it except those files belonging to the JDK.

as follows in the attachment.


This brings about the following question, how do I re-create a workspace?

Thanks,
Midani

workspaces.jpg
[Thumbnail for workspaces.jpg]
Screen Shot of Workspaces Directory "Search" in Windows
 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This seems like a question about Eclipse, so I will move it to the IDEs forum.

I know this doesn't help you right now, but I always configure Eclipse to ask me where the workspace is when it starts up. I always accept its suggestion (the last place I told it), but if I don't do that then I forget where I put the workspace and then I'm in the boat you're in right now.
 
Paul Clapham
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using an IBM product here which is based on Eclipse, so probably these steps will work:

(1) Start Eclipse.

(2) Go menu Window, Preferences, General, Startup and Shutdown.

(3) Check the "Prompt for Workspace on Startup" box.

(4) Stop Eclipse.

(5) Start Eclipse...

and it should prompt you with the location of the workspace.
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks I really appreciate the fast response.

Only problem is some other guy was on my machine and his workspaces aren't visible on this machine something about being logged in as administrator to see them.


Should I be worried about this?

If I need to create a workspace from another machine that has workspaces on it already, which I think I will need to do, what are the steps for that?


Thanks, Midani
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's something wrong if you're seeing jdk files in an Eclipse workspace directory.

A user/machine can have multiple workspaces and it is optional to have Eclipse prompt which workspace to use for a given session. I've even been known to switch workspaces in the middle of a session.

Why do I have multiple workspaces? Because I have major projects and minor projects. The minor projects are mostly experiments or various apps that I have written for my own personal benefit. Rather than have one enormous workspace, I split them into 2, since I'll rarely want one of the minor projects at the same time as I'm working on a major project (and vice versa).

An Eclipse workspace is simply a directory containing a ".metadata" directory initially. As you add projects, project files and directories will be added - although I should note that projects can also be located in directories external to the workspace.

A workspace is self-contained, re-assignable but not concurrently sharable. Its metadata keeps track of editing state, which is why only one user at a time. It also tracks a user's preferences, both for Eclipse itself and for plugins. Source code repository URLs are stashed somewhere in the metadata, as are definitions for external tools (if any), and run/debug configurations.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
None of those directories look like Eclipse workspaces. Some things to look for in an Eclipse workspace are these files:

workspace/.metadata/.log
workspace/.metadata/.plugins/*

And then there should be project directories, which contain files such as the following:

workspace/some-project-name/.project
workspace/some-project-name/.classpath
workspace/some-project-name/.settings/*.prefs
 
Tim Holloway
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now that I look at the picture, not ONE of those items is even a directory! The JDK stuff is type libraries, but everything that the puppy fetched is a file.

I recommend doing a search for files named ".project" or ".classpath". Whatever directory you find them is is probably a workspace.
 
Tim Holloway
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This may help, too, if you know what directory Eclipse itself is installed in. CD to it and take a look at

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

Look for RECENT_WORKSPACES=
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks this worked well. I appreciate it. Thanks again!

Michele
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic