Problem to build ICE 3.7 with gradlew build

MartokMartok Member Mark StrippelOrganization: HerrProject: Private offloading of Java-Applications

I try to get the ICE 3.7 Java build with gradlew build. Downloaded with Eclipse from https://github.com/zeroc-ice/ice/tree/3.7 and go through https://github.com/zeroc-ice/ice/tree/3.7/java

What went wrong? I put the output log as file attach.

Questions are:

ICE_HOME variable is only 3.7.0 and not 3.7.1

I can only download on https://zeroc.com/downloads/ice the Ice-3.7.0.msi version.

"On Windows with an MSI installation:

set ICE_BIN_DIST=cpp
set ICE_HOME=C:\Program Files\ZeroC\Ice-3.7.1"

I use Java jdk-9.0.4 version and get the problem "> Configure project :IceGridGUI
Evaluating project ':IceGridGUI' using build file 'C:\Users\MarkS\git\ice37from20180210\java\src\IceGridGUI\build.gradle'.
Proguard does not yet support Java 9. Plain IceGridGUI JAR will be built.

Answers

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff

    Hi Mark,

    3.7 branchs contains code for upcoming Ice 3.7.1 that has not been released yet, you need to first build slice2java from the cpp subdirectory.

    IceGridGUI Java 9 builds have been fixed in https://github.com/zeroc-ice/ice/commit/fefc78c7421eefb89e6a1917b4b97f7eebee4678 is you 3.7 branch up to date?

    You need a recent Visual Studio version for the C++ build, from a Visual Studio command prompt try:

    cd ice
    msbuild msbuild/ice.proj
    

    This will build both the Java distribution and the slice2java compiler. You don't need to set ICE_BIN_DIST or ICE_HOME when doing that.

  • MartokMartok Member Mark StrippelOrganization: HerrProject: Private offloading of Java-Applications
    edited February 2018

    I'm a bit confused. Never do such things.

    On the site stay: 3.7 Ice 3.7.x plus various patches (stable, frequently updated)

    Mean (stable, frequently updated) that I don't should use it? I tried also 3.6 Ice 3.6.x plus various patches (stable) with problems.

    In the manual "Building Ice for Java" is nothing writen to first build slice2java from the cpp subdirectory.

    What's the version I should check out from git to run in eclipse? I want to compile the test to learn ICE.

    So I will next install the Visual Studio from your web link https://www.nuget.org/packages/zeroc.ice.v141 and follow the instruction on https://github.com/zeroc-ice/ice/tree/3.7/cpp#c-build-requirements
    I see it's not a download link of Visual Studio. So I need to install it in Visiual Studio? With command Install-Package zeroc.ice.v141 -Version 3.7.0? Ah here it's explained https://doc.zeroc.com/display/Ice37/Using+the+Windows+Binary+Distributions

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    edited February 2018

    If you want to use the last stable version install 3.7.0 MSI for Windows, and then use Ice 3.7.0 JARs from maven central in this case you don't need to build Ice at all.

    see https://doc.zeroc.com/display/Ice37/Building+Ice+Applications+in+Java

Sign In or Register to comment.