Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 258854 - java.lang.module.ResolutionException when Run or Debug of Java 9 based Ant project
java.lang.module.ResolutionException when Run or Debug of Java 9 based Ant pr...
Product: java
Classification: Unclassified
Component: Project
PC Windows 7
: P2 (vote)
: Dev
Assigned To: Tomas Zezula
: JDK_9
Depends on:
  Show dependency treegraph
Reported: 2016-04-15 11:06 UTC by Martin Balin
Modified: 2016-05-06 12:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
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.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo