Hi Michael, Great that it has been fixed. I was using "jdk9/jdk9", not "jdk9/dev", as advised in 'discuss' list [1]. There is also #2 for the javadoc target, I am not sure if something can done there. Thanks,Ahmed [1] http://mail.openjdk.java.net/pipermail/discuss/2015-July/003762.html
From: Michael Haupt <michael.ha...@oracle.com> To: Nashorn-dev <nashorn-dev@openjdk.java.net> Sent: Wednesday, July 8, 2015 1:12 PM Subject: Re: Build fails on Windows Hi Ahmed, this was fixed recently [1,2] - which version of Nashorn are you running on? Best, Michael [1] https://bugs.openjdk.java.net/browse/JDK-8130306 [2] http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/6eca661ddf79 > Am 07.07.2015 um 16:21 schrieb Ahmed Ashour <asash...@yahoo.com>: > > Hi all, > > Running make/ant on Windows fails because of two reasons: > 1 - In JDK-8050964.js, it assumes jdk_home/bin/jdeps exists, however it >should have .exe extension, the below patch will not work since >string.toLowerCase() is somehow not recognized in the test suite, but I guess >you would have an idea. > > diff --git a/test/script/nosecurity/JDK-8050964.js > b/test/script/nosecurity/JDK-8050964.js--- > a/test/script/nosecurity/JDK-8050964.js+++ > b/test/script/nosecurity/JDK-8050964.js@@ -47,9 +47,10 @@ } var javahome = > System.getProperty("java.home");-var jdepsPath = javahome + > "/../bin/jdeps".replace(/\//g, File.separator);+var extension = > System.getProperty("os.home").toLowerCase().contains("win") ? ".exe" : > "";+var jdepsPath = javahome + "/../bin/jdeps".replace(/\//g, File.separator) > + extension; if (! new File(jdepsPath).isFile()) {- jdepsPath = javahome + > "/bin/jdeps".replace(/\//g, File.separator);+ jdepsPath = javahome + > "/bin/jdeps".replace(/\//g, File.separator) + extension; } // run jdep on > nashorn.jar - only summary but print profile info > > > > 2 - C:\use\nashorn\make\build.xml:214: Javadoc failed: >java.io.IOException: Cannot run program "C:\use\jdk8\bin\javadoc.exe": >CreateProcess error=206, The filename or extension is too long > Even though JDK_HOME in c:\use\jdk8, nashorn in c:\use\nashorn > > Thanks,Ahmed -- <http://www.oracle.com/> Dr. Michael Haupt | Principal Member of Technical Staff Phone: +49 331 200 7277 | Fax: +49 331 200 7561 Oracle Java Platform Group | LangTools Team | Nashorn Oracle Deutschland B.V. & Co. KG, Schiffbauergasse 14 | 14467 Potsdam, Germany <http://www.oracle.com/commitment> Oracle is committed to developing practices and products that help protect the environment