Build fails on Windows

Michael Haupt michael.haupt at oracle.com
Wed Jul 8 11:12:53 UTC 2015


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 <asashour at 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



More information about the nashorn-dev mailing list