[ https://issues.apache.org/jira/browse/NETBEANS-4099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noah Avelar updated NETBEANS-4099: ---------------------------------- Description: When using the scanner class, Netbeans 11.0, 11.2 and 11.3 still does not allow user input in the console like the scanner class should normally do. Here is a link to a similar issue and it has not been resolved https://issues.apache.org/jira/browse/NETBEANS-3073 I get the following error. > Task :run FAILED> Task :run FAILEDEnter your ageException in thread "main" > java.util.NoSuchElementException: No line found at > java.util.Scanner.nextLine(Scanner.java:1540) at > gradleproject1.Main.main(Main.java:23) FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':run'.> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1 * Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. I have tried with both Java SE Development Kit 11(LTS) and 8u241 on Netbeans 11.0, 11.2 and the latest 11.3 Apache version and I still get the same error. was: When using the scanner class, Netbeans 11.0, 11.2 and 11.3 still does not allow user input in the console like the scanner class should normally do. Here is a link to a similar issue and it has not been resolved https://issues.apache.org/jira/browse/NETBEANS-3073 I get the following error. > Task :run FAILED> Task :run FAILEDEnter your ageException in thread "main" > java.util.NoSuchElementException: No line found at > java.util.Scanner.nextLine(Scanner.java:1540) at > gradleproject1.Main.main(Main.java:23) FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':run'.> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1 * Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. > Console does not allow input with Scanner class / Gradle Project > ---------------------------------------------------------------- > > Key: NETBEANS-4099 > URL: https://issues.apache.org/jira/browse/NETBEANS-4099 > Project: NetBeans > Issue Type: Bug > Affects Versions: 11.0, 11.2, 11.3 > Environment: I've tried on both Macbook Pro with macOS Catalina and > Windows 10 and get the same issue even though the Netbeans IDE and Java SE > Development Kit are compatible. When I try the code on Eclipse, it works > perfect which shows that there is not an issue with the code, the issue is > with Netbeans. Must be some configuration not allowing input from the user in > a console. > Reporter: Noah Avelar > Priority: Major > Labels: Console, Java, Netbeans, Scanner, input > Original Estimate: 504h > Remaining Estimate: 504h > > When using the scanner class, Netbeans 11.0, 11.2 and 11.3 still does not > allow user input in the console like the scanner class should normally do. > Here is a link to a similar issue and it has not been resolved > https://issues.apache.org/jira/browse/NETBEANS-3073 > I get the following error. > > Task :run FAILED> Task :run FAILEDEnter your ageException in thread "main" > > java.util.NoSuchElementException: No line found at > > java.util.Scanner.nextLine(Scanner.java:1540) at > > gradleproject1.Main.main(Main.java:23) > FAILURE: Build failed with an exception. > * What went wrong:Execution failed for task ':run'.> Process 'command > '/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/bin/java'' > finished with non-zero exit value 1 > * Try:Run with --stacktrace option to get the stack trace. Run with --info > or --debug option to get more log output. Run with --scan to get full > insights. > > I have tried with both Java SE Development Kit 11(LTS) and 8u241 on Netbeans > 11.0, 11.2 and the latest 11.3 Apache version and I still get the same error. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists