Skip to main content



      Home
Home » Newcomers » Newcomers » Can my classes only be made in a package??
Can my classes only be made in a package?? [message #27580] Tue, 15 February 2005 10:21 Go to next message
Eclipse UserFriend
Originally posted by: gfghh.hhh.com

I have made a new Java Project called "Test". Now I would like to make a new
folder in the project where I can store a few classes.

But each time I try to make a new class in this folder it is made outside
this folder in a new package.

I am not interested in having my classes to be a part of a package, they are
just supposed to be in a regular folder.

Is that possible somehow?
Re: Can my classes only be made in a package?? [message #27587 is a reply to message #27580] Tue, 15 February 2005 12:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

The JDT likes to see classes properly nested in their packages.
All kinds of tools rely on this.

You may be able to play with your project layout a bit using Linked
Resources. See http://www.eclipsefaq.org/chris/faq/html/faq36.html

--
Chris Laffra, http://eclipsefaq.org


"bunallo" <gfghh@hhh.com> wrote in message
news:cut417$gns$1@www.eclipse.org...
> I have made a new Java Project called "Test". Now I would like to make a
new
> folder in the project where I can store a few classes.
>
> But each time I try to make a new class in this folder it is made outside
> this folder in a new package.
>
> I am not interested in having my classes to be a part of a package, they
are
> just supposed to be in a regular folder.
>
> Is that possible somehow?
>
>
Re: Can my classes only be made in a package?? [message #27589 is a reply to message #27580] Tue, 15 February 2005 12:05 Go to previous message
Eclipse UserFriend
Originally posted by: gbisaga.yahoo.com

There really is no such thing as having a class outside of any package.
The Java view reflects this by putting your new class in a folder called
"Default Package". (This is assuming that you cleared out the Package name
in the "New Class" dialog box.)

Why do you want your classes outside of any package anyway? In practice,
you always want to put classes in some package. In the system I'm working
on there are thousands of classes. You might as well get used to the idea
of using packages right now.

bunallo wrote:

> I have made a new Java Project called "Test". Now I would like to make a new
> folder in the project where I can store a few classes.

> But each time I try to make a new class in this folder it is made outside
> this folder in a new package.

> I am not interested in having my classes to be a part of a package, they are
> just supposed to be in a regular folder.

> Is that possible somehow?
Previous Topic:Previewing a JSP page
Next Topic:No errorsign in Navigator view??
Goto Forum:
  


Current Time: Tue Jun 17 10:21:53 EDT 2025

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

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

Back to the top