lkishalmi opened a new issue, #6255:
URL: https://github.com/apache/netbeans/issues/6255
### Apache NetBeans version
Apache NetBeans 19 release candidate
### What happened
When running a console app reading from System.in, Gradle throws an
exception when Scanner is requesting for an input.
### How to reproduce
Create a new Gradle Application with the following main method:
```java
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Would you like to start? (y/n) ");
String answer = input.nextLine();
}
```
Running that project will result an exception.
### Did this work correctly in an earlier version?
Apache NetBeans 18
### Operating System
Ubuntu 22.10
### JDK
Java 17
### Apache NetBeans packaging
Apache NetBeans Snap Package
### Anything else
_No response_
### Are you willing to submit a pull request?
Yes
--
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