Eclipse Default Package Error. If you create a class in a default package, jdt warns you the use of the default package is discouraged. Eclipse will not allow you to just make a (default package), since all packages must have names, and no name can start with an open parenthesis.
Thus, you cannot make the (default package). Instead of creating new package, i just clicked on src and created new file, naming it helloworld and it created the default package by itself.
Problem In Packages In Importing In Eclipse.
From your screenshot, i guess you're probably using the navigator view.
It Looks Like There Is An Answer Here:
Answered nov 28, 2021 at.
How To Do This Was Already Explicated In This Answer Provided By Strikeskids, On 4 July 2014:
Images References :
Thus, You Cannot Make The (Default Package).
It looks like there is an answer here:
Instead Of Wasting Your Time On Working Around Those Default Package Classes You Refactor Them, By.
I think it is a bad idea to put classes in the default package.
Eclipse Will Not Allow You To Just Make A (Default Package), Since All Packages Must Have Names, And No Name Can Start With An Open Parenthesis.