Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How linking project with Eclipse?
How linking project with Eclipse? [message #146463] Mon, 20 October 2003 08:59 Go to next message
Eclipse UserFriend
Originally posted by: didiot.alexandre.de.trespaphan.com

Hallo ,

We already have following project structure in our organisation :

L:\ROOT\COM\A\APPS\ALEX
\POL
\TimeCalculations
\Interfaces
\COMMON
\DIVERS
\...

ALEX, POL, TimeCalculations, Interface are projects. In those project
directories are class and java files.
They are actually other developper who works with this structure using
Forte or NetBeans.

In directory ALEX, the package is COM.A.APPS.ALEX,
in directory POL, the package is COM.A.APPS.POL.

I want to use Eclipse and work with this projects.
How can I do that without creating a big project under L:\ROOT\COM,
and preserve existing package names.

L: is a network drive (sharing file system).

Thanks for your answer and recommandations,
Regards,
A.Didiot
Re: How linking project with Eclipse? [message #146512 is a reply to message #146463] Mon, 20 October 2003 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.tkilla.ch

A.DIDIOT wrote:
> We already have following project structure in our organisation :
>
> L:\ROOT\COM\A\APPS\ALEX
> \POL
> \TimeCalculations
> \Interfaces
> \COMMON
> \DIVERS
> \...
>
> ALEX, POL, TimeCalculations, Interface are projects. In those project
> directories are class and java files.
> They are actually other developper who works with this structure using
> Forte or NetBeans.
>
> In directory ALEX, the package is COM.A.APPS.ALEX,
> in directory POL, the package is COM.A.APPS.POL.

Create a project for each of ALEX, POL, TimeCalc and Interfaces, add
dependencies where one project depends on the other.

Alternatively (or if the projects circularly depend on each other),
create one project with several source folders for each of the above.
Each source folder can have its own Java package structure.

-tom
Re: How linking project with Eclipse? [message #146525 is a reply to message #146512] Mon, 20 October 2003 13:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: didiot.alexandre.de.trespaphan.com

Tom Eicher wrote:

> A.DIDIOT wrote:
> > We already have following project structure in our organisation :
> >
> > L:ROOTCOMAAPPSALEX
> > POL
> > TimeCalculations
> > Interfaces
> > COMMON
> > DIVERS
> > ...
> >
> > ALEX, POL, TimeCalculations, Interface are projects. In those project
> > directories are class and java files.
> > They are actually other developper who works with this structure using
> > Forte or NetBeans.
> >
> > In directory ALEX, the package is COM.A.APPS.ALEX,
> > in directory POL, the package is COM.A.APPS.POL.

> Create a project for each of ALEX, POL, TimeCalc and Interfaces, add
> dependencies where one project depends on the other.

> Alternatively (or if the projects circularly depend on each other),
> create one project with several source folders for each of the above.
> Each source folder can have its own Java package structure.

> -tom

Thanks for your answer tom,
But when I create my project which default directory should I choose for
the
new project ?
After creating the new project, existing classes will be compiled, and I
recieve : "The declared package does not match the expected package" ?
In those classes there is (i.e.) package COM.A.APPS.ALEX
and I mean Eclipse doesn't know this structure ?
Re: How linking project with Eclipse? [message #146630 is a reply to message #146525] Mon, 20 October 2003 15:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.tkilla.ch

A.DIDIOT wrote:

> But when I create my project which default directory should I choose for
> the new project ?
> After creating the new project, existing classes will be compiled, and I
> recieve : "The declared package does not match the expected package" ?
> In those classes there is (i.e.) package COM.A.APPS.ALEX
> and I mean Eclipse doesn't know this structure ?

1. Create a source folder (right-click on the project, New->Source
Folder), name it ALEX.

2. Choose File->Import to import your existing Java source files (e.g.
from a directory structure or zip file) into the just created folder.

HTH, tom
Re: How linking project with Eclipse? [message #147042 is a reply to message #146630] Tue, 21 October 2003 08:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: didiot.alexandre.de.trespaphan.com

Tom Eicher wrote:

> A.DIDIOT wrote:

> > But when I create my project which default directory should I choose for
> > the new project ?
> > After creating the new project, existing classes will be compiled, and I
> > recieve : "The declared package does not match the expected package" ?
> > In those classes there is (i.e.) package COM.A.APPS.ALEX
> > and I mean Eclipse doesn't know this structure ?

> 1. Create a source folder (right-click on the project, New->Source
> Folder), name it ALEX.

> 2. Choose File->Import to import your existing Java source files (e.g.
> from a directory structure or zip file) into the just created folder.

> HTH, tom
Thanks Tom,

But I must create the entire directory structure.
Because Eclipse wants absolutely the same directory structure as the
package name, which is declared in the class files, that is the problem.
I want to say at Eclipse, to work with existing files without importing it,
and without creating a new directory structure ?

Thanks again for your help.
Re: How linking project with Eclipse? [message #147055 is a reply to message #146630] Tue, 21 October 2003 08:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: didiot.alexandre.de.trespaphan.com

Tom Eicher wrote:

> A.DIDIOT wrote:

> > But when I create my project which default directory should I choose for
> > the new project ?
> > After creating the new project, existing classes will be compiled, and I
> > recieve : "The declared package does not match the expected package" ?
> > In those classes there is (i.e.) package COM.A.APPS.ALEX
> > and I mean Eclipse doesn't know this structure ?

> 1. Create a source folder (right-click on the project, New->Source
> Folder), name it ALEX.

> 2. Choose File->Import to import your existing Java source files (e.g.
> from a directory structure or zip file) into the just created folder.

> HTH, tom
Thanks Tom,

But I must create the entire directory structure.
Because Eclipse wants absolutely the same directory structure as the
package name, which is declared in the class files, that is the problem.
I want to say at Eclipse, to work with existing files without importing it,
and without creating a new directory structure ?

Thanks again for your help.
Re: How linking project with Eclipse? [message #147116 is a reply to message #147055] Tue, 21 October 2003 10:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.tkilla.ch

A.DIDIOT wrote:
> But I must create the entire directory structure.

Yes.

> I want to say at Eclipse, to work with existing files without importing it,

See http://eclipsewiki.swiki.net/14?SID=371988917-3244168532

You can't / don't want to do this - what is the problem with importing
the project from disk or CVS?

-tom
Re: How linking project with Eclipse? [message #147180 is a reply to message #147116] Tue, 21 October 2003 11:41 Go to previous message
Eclipse UserFriend
Originally posted by: didiot.alexandre.de.trespaphan.com

Tom Eicher wrote:

> A.DIDIOT wrote:
> > But I must create the entire directory structure.

> Yes.

> > I want to say at Eclipse, to work with existing files without importing it,

> See http://eclipsewiki.swiki.net/14?SID=371988917-3244168532

> You can't / don't want to do this - what is the problem with importing
> the project from disk or CVS?

> -tom
The problem is that I don't want 2 copies of classfile at the same time.
(We don't use CVS).
With importing file in Eclipse, I will have my local copy of the new
imported
class file.
Alex.
Previous Topic:Starting Eclipse with an external workspace and external plugins
Next Topic:Blank workbench
Goto Forum:
  


Current Time: Wed Jul 17 23:42:43 GMT 2024

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

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

Back to the top