NttCAD opened a new issue, #7244:
URL: https://github.com/apache/netbeans/issues/7244
### Apache NetBeans version
Apache NetBeans 21
### What happened
1) Use NetBeans 20 (21 doesn't work)
2) Create new java with Ant library class project, and create the class Jlib:
package jlib;
public class Jlib {
public void printMessage() {
System.out.print("Ciao!");
}
}
3) Create new Java applicationant project with a Main Class:
package japp;
import jlib.Jlib;
public class Japp {
public static void main(String[] args) {
Jlib jlib = new Jlib();
jlib.printMessage();
}
}
4) Right click property of Japp and add Jlib to the Classpath
5) Compile the projects and run.
### Language / Project Type / NetBeans Component
Java application and library with Ant
### How to reproduce
6) This is what I see into the output window:
run:
Exception in thread "main" java.lang.RuntimeException: Uncompilable code -
cannot find symbol
symbol: class Jlib
location: class japp.Japp
at japp.Japp.main(Japp.java:1)
/home/luca/.cache/netbeans/20/executor-snippets/run.xml:111: The following
error occurred while executing this line:
/home/luca/.cache/netbeans/20/executor-snippets/run.xml:68: Java returned: 1
BUILD FAILED (total time: 2 seconds)
7) Also the editor does not see Jlib.
### Did this work correctly in an earlier version?
Apache NetBeans 16 or earlier
### Operating System
Ubunt 22.04
### JDK
JDK 21
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
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