Message “package … does not exist” despite of a corresponding Java source file #4566
Replies: 7 comments 3 replies
-
That's not a valid project. The packages should be under |
Beta Was this translation helpful? Give feedback.
-
Does this really matters and does this really make a difference? |
Beta Was this translation helpful? Give feedback.
-
💭 I suggest to reconsider such information a bit more also according to a required statement like “ |
Beta Was this translation helpful? Give feedback.
-
Yes. @Chris2011 if it's not a valid project how do you expect NetBeans to work out where the root of Java packages is?
Well, build systems do, and unless the build system (eg. Maven) is configured correctly, then it's neither going to build or allow NetBeans to find the required information. I hadn't noticed initially, but it looks like the For help with Maven inside (or outside) NetBeans, I suggest you ask on the users@ mailing list or in the GitHub discussions. |
Beta Was this translation helpful? Give feedback.
-
The file “pom.xml” is stored in the root directory for my test project example. |
Beta Was this translation helpful? Give feedback.
-
Does the shown screenshot excerpt indicate relevant information? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Moving this into discussions as suggested. |
Beta Was this translation helpful? Give feedback.
-
Apache NetBeans version
Apache NetBeans 14
What happened
The script “Apache-NetBeans-14-bin-linux-x64.sh” was successfully executed also on my development system.
I opened a test project a moment later.
I wondered then about the error message “package … does not exist”.
How to reproduce
Please take another look at import specifications (also in known Java example source files).
Did this work correctly in an earlier version?
No / Don't know
Operating System
Linux 5.19.2-1.2 x86_64 - openSUSE Tumbleweed
JDK
OpenJDK 18.0.2.0 x86_64 - openSUSE Tumbleweed
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
The software “Eclipse IDE for Java Developers 2022-06 (4.24.0)” found the mentioned import statement usable.
Another example for a previous clarification attempt:
2016-08-11: "Package does not exist" but it does
Are you willing to submit a pull request?
No
Code of Conduct
Yes
Beta Was this translation helpful? Give feedback.
All reactions