Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Can't put project under workspace??? Dummass Noob question.
Can't put project under workspace??? Dummass Noob question. [message #13894] Mon, 05 May 2003 14:19 Go to next message
Eclipse UserFriend
Originally posted by: tgm1024badlyspelledsite.hotmale.com

Guys, this is ridiculous: I'm stuck out the gate and feel like a shmuck.

Because I'm used to it with other IDE's, I want this:

C:\Devel
C:\Devel\Projects
C:\Devel\Source
C:\Devel\Classes

But when I go to create the project and decide to not use the default of
C:\Devel, and try to enter in C:\Devel\Projects for the directory, it
disallows it saying that the project directory cannot be a subdirectory of
the workspace.

Huh?

When I create a project, say "Test", using the default workspace path of
C:\Devel, it creates and put the project where I'd expect C:\Devel\Test.

What's the logic here: Why's it ok in the latter case but not the former? I
cannot find the answer to this.
Re: Can't put project under workspace??? Dummass Noob question. [message #13914 is a reply to message #13894] Mon, 05 May 2003 16:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mqualizza.insurance-engine.com

It might be easier if you adopted an approach closer to:
- Keep your workspace directory as ./eclipse/workspace
- Create a project "Whatever" rooted at "C:\Devel"
- Set your src folder to "C:\Devel\Source"
- Set your bin folder to "C:\Devel\Classes"

(Although I could be misinterpreting the names of those folders. I have no
idea what you'd do with C:\Devel\Projects... don't know what it is. :-) )

Muad'Dib wrote:
> Guys, this is ridiculous: I'm stuck out the gate and feel like a shmuck.
>
> Because I'm used to it with other IDE's, I want this:
>
> C:\Devel
> C:\Devel\Projects
> C:\Devel\Source
> C:\Devel\Classes
>
> But when I go to create the project and decide to not use the default of
> C:\Devel, and try to enter in C:\Devel\Projects for the directory, it
> disallows it saying that the project directory cannot be a subdirectory of
> the workspace.
>
> Huh?
>
> When I create a project, say "Test", using the default workspace path of
> C:\Devel, it creates and put the project where I'd expect C:\Devel\Test.
>
> What's the logic here: Why's it ok in the latter case but not the former? I
> cannot find the answer to this.
>
>
Re: Can't put project under workspace??? Dummass Noob question. [message #13924 is a reply to message #13914] Mon, 05 May 2003 17:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tgm1024SiteNameMispelled.hotmale.com

In news:b96geu$dm$1@rogue.oti.com,
Marco Qualizza <mqualizza@insurance-engine.com> spoke unto us:
> It might be easier if you adopted an approach closer to:
> - Keep your workspace directory as ./eclipse/workspace
> - Create a project "Whatever" rooted at "C:\Devel"
> - Set your src folder to "C:\Devel\Source"
> - Set your bin folder to "C:\Devel\Classes"
>
> (Although I could be misinterpreting the names of those folders. I
> have no idea what you'd do with C:\Devel\Projects... don't know what
> it is. :-) )

That project "whatever" you mention, would be in C:\Devel\Whatever the way
you suggest it. I'd rather it were in C:\Devel\Projects\Whatever.

I suppose I can deal with what you say. I'll move the workspace back into
the programs/eclipse area I guess.

This still doesn't make any sense to me: Why would it try to restrict the
placement of a project directory someplace where it itself likes to place
project directories.
Re: Can't put project under workspace??? Dummass Noob question. [message #14499 is a reply to message #13924] Mon, 05 May 2003 19:41 Go to previous messageGo to next message
Eclipse UserFriend
Muad'Dib wrote:

> This still doesn't make any sense to me: Why would it try to
> restrict the placement of a project directory someplace where it
> itself likes to place project directories.
>

Don't uncheck the "Use default" option while creating a new project
- it will be created in a directory named as the project (the
"Project name" you enter) and will be under the workspace directory.

--
Stanimir
Re: Can't put project under workspace??? Dummass Noob question. [message #16987 is a reply to message #14499] Wed, 07 May 2003 19:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tgm1024SiteNameMispelled.hotmale.com

In news:b96sro$7rt$1@rogue.oti.com,
Stanimir Stamenkov <stanio@yahoo.com> spoke unto us:
> Muad'Dib wrote:
>
>> This still doesn't make any sense to me: Why would it try to
>> restrict the placement of a project directory someplace where it
>> itself likes to place project directories.
>>
>
> Don't uncheck the "Use default" option while creating a new project
> - it will be created in a directory named as the project (the
> "Project name" you enter) and will be under the workspace directory.


I know that: I said as much in my complaint about it.

The confusion was, if my workspace is C:\Devel, I'd like my HelloWorld
project to be in

C:\Devel\Projects\HelloWorld, and it wouldn't allow it.
Re: Can't put project under workspace??? Dummass Noob question. [message #17274 is a reply to message #13924] Thu, 08 May 2003 09:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Muad'Dib wrote:

> In news:b96geu$dm$1@rogue.oti.com,
> Marco Qualizza <mqualizza@insurance-engine.com> spoke unto us:
> > It might be easier if you adopted an approach closer to:
> > - Keep your workspace directory as ./eclipse/workspace
> > - Create a project "Whatever" rooted at "C:\Devel"
> > - Set your src folder to "C:\Devel\Source"
> > - Set your bin folder to "C:\Devel\Classes"
> >
> > (Although I could be misinterpreting the names of those folders. I
> > have no idea what you'd do with C:\Devel\Projects... don't know what
> > it is. :-) )

> That project "whatever" you mention, would be in C:\Devel\Whatever the way
> you suggest it. I'd rather it were in C:\Devel\Projects\Whatever.

> I suppose I can deal with what you say. I'll move the workspace back into
> the programs/eclipse area I guess.

> This still doesn't make any sense to me: Why would it try to restrict the
> placement of a project directory someplace where it itself likes to place
> project directories.

Because projects placed in the default location must all be rooted at the
base workspace directory. If C:\Devel is your workspace directory, any
project placed under that directory must be a direct subdirectory of
C:\Devel. This means that C:\Devel\Whatever is valid whild
C:\Devel\Projects\Whatever isn't.

I have a couple of suggestions. Instead of placing your workspace in
C:\Devel, create a workspace directory e.g. C:\Workspace. When you create
your projects, uncheck the use default location and specify
C:\Devel\Projects\Whatever for their locations. This will allow you to
have as many projects as you wish in the C:\Devel\Projects directory.

Alternatively, define C:\Devel as your project directory and specify
Projects\Whatever as a source folder in the project. This will allow the
project to reference anything in the C:\Devel directory structure.
Re: Can't put project under workspace??? Dummass Noob question. [message #17769 is a reply to message #17274] Thu, 08 May 2003 13:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tgm1024SiteNameMispelled.hotmale.com

In news:b9dmhd$tvg$1@rogue.oti.com,
Dave Wegener <wegener@cboenospam.com> spoke unto us:
> Muad'Dib wrote:
>
>> In news:b96geu$dm$1@rogue.oti.com,
>> Marco Qualizza <mqualizza@insurance-engine.com> spoke unto us:
>>> It might be easier if you adopted an approach closer to:
>>> - Keep your workspace directory as ./eclipse/workspace
>>> - Create a project "Whatever" rooted at "C:\Devel"
>>> - Set your src folder to "C:\Devel\Source"
>>> - Set your bin folder to "C:\Devel\Classes"
>>>
>>> (Although I could be misinterpreting the names of those folders. I
>>> have no idea what you'd do with C:\Devel\Projects... don't know what
>>> it is. :-) )
>
>> That project "whatever" you mention, would be in C:\Devel\Whatever
>> the way you suggest it. I'd rather it were in
>> C:\Devel\Projects\Whatever.
>
>> I suppose I can deal with what you say. I'll move the workspace
>> back into the programs/eclipse area I guess.
>
>> This still doesn't make any sense to me: Why would it try to
>> restrict the placement of a project directory someplace where it
>> itself likes to place project directories.
>
> Because projects placed in the default location must all be rooted at
> the base workspace directory. If C:\Devel is your workspace
> directory, any project placed under that directory must be a direct
> subdirectory of C:\Devel. This means that C:\Devel\Whatever is valid
> whild C:\Devel\Projects\Whatever isn't.

But I'm not /using/ the default location. I unchecked that, and it still
would not allow me to place it into C:\Devel\Projects\Whatever.

It's as if the rule is: "for safety sake, we don't want your project
directory and workspace directory to share base directories unless it is in
the default location." Or some such.

There seem to be a really obtuse set of rules for this. I'm investigating
further, and discovering more.
Re: Can't put project under workspace??? Dummass Noob question. [message #17803 is a reply to message #17769] Thu, 08 May 2003 17:40 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Muad'Dib wrote:

> >
> >> I suppose I can deal with what you say. I'll move the workspace
> >> back into the programs/eclipse area I guess.
> >
> >> This still doesn't make any sense to me: Why would it try to
> >> restrict the placement of a project directory someplace where it
> >> itself likes to place project directories.
> >
> > Because projects placed in the default location must all be rooted at
> > the base workspace directory. If C:\Devel is your workspace
> > directory, any project placed under that directory must be a direct
> > subdirectory of C:\Devel. This means that C:\Devel\Whatever is valid
> > whild C:\Devel\Projects\Whatever isn't.

> But I'm not /using/ the default location. I unchecked that, and it still
> would not allow me to place it into C:\Devel\Projects\Whatever.

> It's as if the rule is: "for safety sake, we don't want your project
> directory and workspace directory to share base directories unless it is in
> the default location." Or some such.

> There seem to be a really obtuse set of rules for this. I'm investigating
> further, and discovering more.

The purpose of the workspace is 2 fold. It provides a location to store
information about the preferences you have selected and what projects you
have defined for that workspace. It also provides a default location for
storing projects. In order to effectively manage the workspace, Eclipse
places restrictions on the projects created there. They must
subdirectories of the workspace root directory. I believe that this is
primarily do to the problem of embedding projects within projects.
Embedding leads to confusion with regards to package names, where does one
package hiearchy end and another begin.

Within a project, it is possible to add additional directories without
messing up your package structure. You do this by defining source
directories. Using your example, you could have your workspace rooted at
C:\Devel. You would define a project called Projects which would begin at
C:\Devel\Projects. You could then define a source directory within
Projects called Whatever. Your package structure would then begin within
C:\Devel\Projects\Whatever. I don't think that this is exactly what you
want by you might be able to make it work.

Eclipse also provides the ability to define projects that exist outside
the workspace entirely. In this case, they cannot begin anywhere within
the workspace hiearchy. You create these projects by unchecking the use
default option when creating the project. This allows the projects to be
created virtually anywhere outside the workspace.

The majority of the projects that I use with Eclipse exist completely
outside the workspace. I have a directory at C:\Workspace to hold my
preferences and a couple of scratch projects for testing out code. The
major development projects exist in other directories on my hard drive.
Previous Topic:JavaW problems
Next Topic:one source tree, one class tree, multiple projects
Goto Forum:
  


Current Time: Mon May 12 16:42:08 EDT 2025

Powered by FUDForum. Page generated in 0.03637 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top