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 - java.lang.module.ResolutionException when Run or Debug of Java 9 based Ant project
Summary: java.lang.module.ResolutionException when Run or Debug of Java 9 based Ant pr...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: JDK_9
Depends on:
Blocks:
 
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
Exception Reporter:


Attachments

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.fail(java.base@9-ea/Resolver.java:796)
	at java.lang.module.Resolver.resolveRequires(java.base@9-ea/Resolver.java:94)
	at java.lang.module.Configuration.resolveRequiresAndUses(java.base@9-ea/Configuration.java:344)
	at jdk.internal.module.ModuleBootstrap.boot(java.base@9-ea/ModuleBootstrap.java:217)
	at java.lang.System.initPhase2(java.base@9-ea/System.java:1916)

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.