zeroc-ice / ice-builder-gradle

Gradle plug-in to automate the compilation of Slice files to Java
https://zeroc.com
BSD 3-Clause "New" or "Revised" License
24 stars 10 forks source link

On Windows, default slice2java not found with 32-bit JDK #8

Closed bernardnormier closed 5 years ago

bernardnormier commented 5 years ago

Affects v1.4.6

When using a 32-bit JDK with a default Ice installation (C:\Program Files\ZeroC\Ice-3.7.x), the builder fails with the following error message:

A problem occurred evaluating script.
> slice2java (\bin\slice2java.exe) not found. Please ensure that Ice is installed and the iceHome property () is correct.

This occurs because:

Note that Ice 3.6 creates Windows registry entries in \HKLM\SOFTWARE\WOW6432Node\ZeroC, so in 32-bit mode, the gradle plugin will find Ice 3.6 but not Ice 3.7 when iceHome/ICE_HOME is not set.

pepone commented 5 years ago

Fixed in 1.4.7 d9780d967bb93c3e439efcd20ded5a99ae330c14