Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Examples » Problem with package structure
Problem with package structure [message #570133] Mon, 14 June 2010 14:03 Go to next message
No real name is currently offline No real nameFriend
Messages: 4
Registered: June 2010
Junior Member
Hi,

I imported a project using build.xml. My source files are in a single folder instead of package structure. But package is defined in the source files. When these files are loaded into eclipse, it gives error related to package. But I am to compile the project. But the classes are not generated in the corresponding packages as specified in the source file. If I compile the ant target seperatly outside eclipse , then the classes are generated in package structure. In build.xml , for javac destdir is specified.

Can anyone help me in resolving these package issue in eclipse. The condition is , I should not create proper package structure for source files and I should not remove the package declaration from the source file.

Thanks and Regards,
Kumar Thirumalai
Re: Problem with package structure [message #570182 is a reply to message #570133] Wed, 16 June 2010 20:12 Go to previous messageGo to next message
Wayne Beaton is currently offline Wayne BeatonFriend
Messages: 554
Registered: December 2017
Senior Member
I recommend that you pose this question on the eclipse.newcomer forum.

Good luck,

Wayne

thirumalaikumar@rediffmail.com wrote:
> Hi,
>
> I imported a project using build.xml. My source files are in a single
> folder instead of package structure. But package is defined in the
> source files. When these files are loaded into eclipse, it gives error
> related to package. But I am to compile the project. But the classes are
> not generated in the corresponding packages as specified in the source
> file. If I compile the ant target seperatly outside eclipse , then the
> classes are generated in package structure. In build.xml , for javac
> destdir is specified.
> Can anyone help me in resolving these package issue in eclipse. The
> condition is , I should not create proper package structure for source
> files and I should not remove the package declaration from the source file.
>
> Thanks and Regards,
> Kumar Thirumalai
Re: Problem with package structure [message #761793 is a reply to message #570133] Wed, 07 December 2011 03:54 Go to previous message
Javak  is currently offline Javak Friend
Messages: 26
Registered: November 2011
Junior Member
No real name wrote on Mon, 14 June 2010 10:03
The condition is , I should not create proper package structure for source files and I should not remove the package declaration from the source file.


It is impossible because it requires to do nothing if follow your condition. What you should do is either to create proper package structure, or remove package declaration in the source files.
Previous Topic:problem in creating simple java project in eclipse
Next Topic:Help with in app buttons.
Goto Forum:
  


Current Time: Fri Apr 26 06:47:36 GMT 2024

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

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

Back to the top