• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating Class files without using the Default Package

 
Emmett Brannon
Greenhorn
Posts: 2
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been using Eclipse to learn Java.
I'm near completion of an 87 lesson beginners tutorial and I have yet to figure out how to create a New Class and not get the following message at the top of the New Class Wizard.
"The use of the default package is discouraged."
Up to now I have been ignoring it and no issues have surfaced.
The warning bugs me and I don't want problems to start cropping up when I move to the next set of tutorials which will be more complex.

Would someone be so kind to explain how to alleviate the warning?

Sorry if its been explained before but I have searched everywhere for the answer to no avail.
I don't seem to be able to come up with the correct search term/terms.
Thank You
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd try Java packages.
 
Emmett Brannon
Greenhorn
Posts: 2
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:I'd try Java packages.
Oh for gosh sakes. I've been over complicating the issue and confusing Package with Project.
Now I know to look in the Projects Node, Open my project and if there is only the "Default Package" in the "Source Packages" folder...
All I need do in that case is:
Right click the "Source Packages" folder and select "New"/"Java Package.
That action will place a Non Default Package into my Project.
From there I add Classes to the new Non Default Package.

Thank You
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic