Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Build path
Build path [message #85191] Mon, 30 June 2003 10:25 Go to next message
Eclipse UserFriend
Originally posted by: mikael.petterson.era.ericsson.se

Hi,

I have the following folder structure for a java app and want to use "on
the fly compile option" in eclipse 2.1. However eclipse does not support a
different package than folder structure.

This is the original folder structure:

test_ss/bccell/src/Power.java
test_ss/bccell/src/Supply.java
.....

This is how all the java files are structured in this package. Good or
bad I need to create a folder structure that matches the package
structure which is:

se.company.network.node.boam.bros.bccell

So I created something like this under test_ss folder:

src/se/company/network/node/boam/bros/bccell

Then I created a link in unix called bccell:

ln -s .../test_ss/bccell/src bccell

I did Add folder in my java project.

I created a link called bros_src and it is linked to src folder.
When I expand I see the following under my project.

<projectname>
brs_src
bros_src
se
company
network
node
boam
bros
bccell
<Here I see all java files>

The error message I get from the "on the fly" compilation is the following:

The declared package does not match the expected package.

Is there another way of going around this without missing the "on the fly
compilation"?

Regards,

//Mikael

Ps. Must say that you have done a greate job with eclipse 2.1 !
Re: Build path [message #85410 is a reply to message #85191] Mon, 30 June 2003 13:54 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Mikael Petterson wrote:

> Hi,

> I have the following folder structure for a java app and want to use "on
> the fly compile option" in eclipse 2.1. However eclipse does not support a
> different package than folder structure.

> This is the original folder structure:

> test_ss/bccell/src/Power.java
> test_ss/bccell/src/Supply.java
> .....

> This is how all the java files are structured in this package. Good or
> bad I need to create a folder structure that matches the package
> structure which is:

> se.company.network.node.boam.bros.bccell

> So I created something like this under test_ss folder:

> src/se/company/network/node/boam/bros/bccell

> Then I created a link in unix called bccell:

> ln -s .../test_ss/bccell/src bccell

> I did Add folder in my java project.

> I created a link called bros_src and it is linked to src folder.
> When I expand I see the following under my project.

Instead of creating the bros_src link, add src as a source folder on the
Java Build Path->Source tab. This tells Eclipse that you have a package
structure starting in the src directory.

> <projectname>
> brs_src
> bros_src
> se
> company
> network
> node
> boam
> bros
> bccell
> <Here I see all java files>

> The error message I get from the "on the fly" compilation is the following:

> The declared package does not match the expected package.

> Is there another way of going around this without missing the "on the fly
> compilation"?

> Regards,

> //Mikael

> Ps. Must say that you have done a greate job with eclipse 2.1 !
Previous Topic:wizard to create a JavaProject
Next Topic:Update TaskList?
Goto Forum:
  


Current Time: Wed Jul 17 09:38:25 GMT 2024

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

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

Back to the top