JDK-8134260 : jjs in jre directory fails with "Could not find or load main class jdk.nashorn.tools.jjs.Main"
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-08-23
  • Updated: 2015-11-13
  • Resolved: 2015-08-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b80Fixed
Related Reports
Relates :  
Description
After jline integration with jjs, jdk.nashorn.tools.jjs.Main class in jdk.scripting.nashorn.shell module is used as "main" class for "jjs" tool. But this module is a "tools module" and hence not available in JRE. Before this jjs used jdk.nashorn.tools.Shell class (extension loader class) and hence jjs of JRE worked. For jdk9, we need a solution where jjs of JRE can use older main class and jjs of JDK uses newer jline integrated jjs.
Comments
This diff to the top level repo appears to fix the issue. But, I'd like to understand the implication of this diff before going ahead with this change. $ hg diff diff -r 100b1da106c2 make/Images.gmk --- a/make/Images.gmk Sun Aug 23 10:01:19 2015 +0530 +++ b/make/Images.gmk Mon Aug 24 11:30:35 2015 +0530 @@ -43,10 +43,11 @@ # providers PROVIDER_MODULES += jdk.charsets jdk.crypto.ec jdk.crypto.pkcs11 jdk.jvmstat jd k.localedata \ - jdk.naming.dns jdk.naming.rmi jdk.scripting.nashorn jdk.zipfs + jdk.naming.dns jdk.naming.rmi jdk.scripting.nashorn jdk.internal .le \ + jdk.scripting.nashorn.shell jdk.zipfs # tools -TOOLS_MODULES += jdk.attach jdk.compiler jdk.dev jdk.internal.le jdk.scripting. nashorn.shell \ +TOOLS_MODULES += jdk.attach jdk.compiler jdk.dev \ jdk.javadoc jdk.jcmd jdk.jconsole jdk.hotspot.agent jdk.jartool \ jdk.jdeps jdk.jdi jdk.jdwp.agent jdk.policytool jdk.rmic jdk.xml .bind jdk.xml.ws
24-08-2015