Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/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...
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Project
8.2
PC Windows 7
: P2 (vote)
: Dev
Assigned To: Tomas Zezula
issues@java
: JDK_9
Depends on:
Blocks:
  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
:


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.


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