-
Bug
-
Resolution: Fixed
-
P4
-
8u151, 9.0.1, 10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8188124 | 8u172 | Murali Billa | P4 | Resolved | Fixed | b01 |
Currently we hardcoded "14.10.25017" to extract the msvcBInDir. When i installed the MSVC 2017 pro update, the version changed to "14.11.25503".
When i clean build and tried to compile with new version (14.11.25503), im getting below error.
Execution failed for task ':graphics:linkWinIio'.
> A problem occurred starting process 'command 'C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/link.exe''
To proceed compilation, I manually edited below code in win.gradle from 25017 to 25503. I feel it is better to avoid hardcoded values in win.gradle.
def msvcBinDir = ""
if (winVsVer == 150) {
msvcBinDir = (IS_64
? "$WINDOWS_VS_VSINSTALLDIR/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64"
: "$WINDOWS_VS_VSINSTALLDIR/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86")
} else if (winVsVer <= 120) {
msvcBinDir = (IS_64
? "$WINDOWS_VS_VSINSTALLDIR/VC/BIN/amd64"
: "$WINDOWS_VS_VSINSTALLDIR/VC/BIN")
When i clean build and tried to compile with new version (14.11.25503), im getting below error.
Execution failed for task ':graphics:linkWinIio'.
> A problem occurred starting process 'command 'C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/link.exe''
To proceed compilation, I manually edited below code in win.gradle from 25017 to 25503. I feel it is better to avoid hardcoded values in win.gradle.
def msvcBinDir = ""
if (winVsVer == 150) {
msvcBinDir = (IS_64
? "$WINDOWS_VS_VSINSTALLDIR/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64"
: "$WINDOWS_VS_VSINSTALLDIR/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86")
} else if (winVsVer <= 120) {
msvcBinDir = (IS_64
? "$WINDOWS_VS_VSINSTALLDIR/VC/BIN/amd64"
: "$WINDOWS_VS_VSINSTALLDIR/VC/BIN")
- backported by
-
JDK-8188124 Remove hardcoded MSVC Version in win.gradle
-
- Resolved
-
- duplicates
-
JDK-8188016 Windows build fails on VS 2017 update releases
-
- Closed
-
- relates to
-
JDK-8191176 JavaFX Self-Contained Application fails with error "Failed to find library: jvm.dll"
-
- Resolved
-