Gradle Version 4.2.1 and IBM JRE

Hi ,
I am trying to migrate to gradle. We use IBM JRE version 6.
I tried pointing to IBM JRE in my build.gradle and gradle.properties, but no luck.

gradle.properties :slight_smile:
javacPath=C:\IBM\Install_Mgr_V1.6.2_Win_WASV8.5.5\jre_6.0.0.sr9_20110208_03\jre\bin\javac

and build.gradle has
sourceCompatibility = 1.6
targetCompatibility = 1.6
compileJava.options.fork = true
compileJava.options.forkOptions.executable = project.property(‘javacPath’)

  • What went wrong:
    Execution failed for task ‘:compileJava’.

A problem occurred starting process ‘command ‘C:\IBM\Install_Mgr_V1.6.2_Win_WASV8.5.5\jre_6.0.0.sr9_20110208_03\jre\bin\javac’’

There should be a bit more to that error. Does C:\IBM\Install_Mgr_V1.6.2_Win_WASV8.5.5\jre_6.0.0.sr9_20110208_03\jre\bin\javac exist?

Could you try running with --stacktrace and posting the full message here or create a build scan?