markhorn732-dev commented on issue #8738:
URL: https://github.com/apache/netbeans/issues/8738#issuecomment-3216117917
To summarize the outcomes of my dialog with the robot:
1. The problem arises in an Ant project.
2. Project -> Properties -> Libraries -> Compile -> Add Project... This does
not add the project, but its JAR. The effect is the same as "Add JAR/Folder".
3. The robot directed me to make some modifications in build.xml and in
nbproject/project.properties.
4. With the above changes, the error flag remains in ProjectB.ClassB1. That
is, in the margin of the codeagainst " import packageA" there is a red dot and
the message "package packageA does not exists".
5. The error continues to show up when the code is run within Netbeans, i.e.
Exception in thread "main" java.lang.RuntimeException: Uncompilable code -
package packageA does not exist
at packageB.ClassB1.main(ClassB1.java:1)
6. BUT when the code is run from the command line in ../ProjectB/dist, it
runs without error:
...\ProjectB\dist>java -jar ProjectB.jar
PackageB.ClassB1: main, instantiating ClassA1
PackageA.ClassA1: constructor
PackageB.ClassB1: done
7. This discrepancy indicates that the source of the problem lies within
Netbeans.
I have also tried other things such as restarting Netbeans and deleting the
cache. The robot suggests I convert to Maven or use another IDE. Both involve s
lot more work for me. More generally, Netbeans is not working as advertised, in
a pretty basic area of functionality. So I suggest that the bug(s) be
corrected..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists