JDK-8215000 : tools/launcher/JliLaunchTest.java fails on Windows
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 12
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-12-07
  • Updated: 2019-01-07
  • Resolved: 2018-12-12
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 12 JDK 13
12 b24Fixed 13Fixed
Related Reports
Relates :  
Description
tools/launcher/JliLaunchTest.java fails on Windows:

----------System.err:(18/872)----------
 stdout: [];
 stderr: []
 exitValue = -1073741515

java.lang.RuntimeException: Expected to get exit value of [0]

	at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:419)
	at JliLaunchTest.main(JliLaunchTest.java:59)

Comments
Works! Thank you Henry!
11-12-2018

The error seems indicate the dll cannot be found. Try the following patch to see if that fix the problem, diff -r 241b8151b6b6 test/jdk/tools/launcher/JliLaunchTest.java --- a/test/jdk/tools/launcher/JliLaunchTest.java Fri Nov 30 13:42:49 2018 -0800 +++ b/test/jdk/tools/launcher/JliLaunchTest.java Mon Dec 10 16:04:32 2018 -0800 @@ -49,6 +49,8 @@ Map<String, String> env = pb.environment(); if (Platform.isWindows()) { // The DLL should be in JDK/bin + String libdir = Paths.get(Utils.TEST_JDK).resolve("bin").toAbsolutePath().toString(); + env.compute("PATH", (k, v) -> (k == null) ? libdir : v + ";" + libdir); } else { String libdir = Paths.get(Utils.TEST_JDK).resolve("lib").toAbsolutePath().toString(); String LD_LIBRARY_PATH = Platform.isOSX() ? "DYLD_LIBRARY_PATH" : "LD_LIBRARY_PATH";
11-12-2018