This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271714

Summary: Wrong command line without Ant message
Product: projects Reporter: brunyan <brunyan>
Component: Java 9 MultiModuleAssignee: Martin Balin <mbalin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description brunyan 2017-10-27 14:19:51 UTC
I created a new Java modular project in Netbeans, added a package and a class Main.

When I make "Clean and Build", I receive this message in output:

To run this application from the command line without Ant, try:
C:\Program Files\Java\jdk-9.0.1/bin/java -modulepath C:\Projectos\java9\JavaModularApplication1\build\modules newpackage.Main

But there are no "-modulepath" and I only could run this project was with this command line:

C:\Program Files\Java\jdk-9.0.1/bin/java -p C:\Projectos\java9\JavaModularApplication1\build\modules -m newmodule/newpackage.Main

I was trying java9 and took me a lot to understand what was wrong