-
Notifications
You must be signed in to change notification settings - Fork 917
Description
Apache NetBeans version
Apache NetBeans 21
What happened
-
Use NetBeans 20 (21 doesn't work)
-
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!");
}
}
- 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();
}
}
-
Right click property of Japp and add Jlib to the Classpath
-
Compile the projects and run.
Language / Project Type / NetBeans Component
Java application and library with Ant
How to reproduce
- 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)
- 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