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 258854

Summary: java.lang.module.ResolutionException when Run or Debug of Java 9 based Ant project
Product: java Reporter: Martin Balin <mbalin>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Severity: normal CC: gustav.trede
Priority: P2 Keywords: JDK_9
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Martin Balin 2016-04-15 11:06:50 UTC
NetBeans jdk9 branch build on Windows 7, running on JDK8, JDK9 EA b112 used as project Java Platform.

Ant 1.9.7 added as external Ant to NetBeans.

Compile works, but Run and debug ends with following exception:
java.lang.module.ResolutionException: Module Modular1\pkg.Modular1 not found
	at java.lang.module.Resolver.resolveRequires(java.base@9-ea/
	at java.lang.module.Configuration.resolveRequiresAndUses(java.base@9-ea/
	at jdk.internal.module.ModuleBootstrap.boot(java.base@9-ea/
	at java.lang.System.initPhase2(java.base@9-ea/

This is windows specific bug which needs to be fixed in NB 9 in build-impl.xsl to fully work with Ant 1.9.7 which already supports JDK9 java and javac tasks.