hi,team。when i release from docker. [0.9.6.1] My ...
# all-things-deployment
c
hi,team。when i release from docker. [0.9.6.1] My main version of Java is Java11, and some of the code is Java8. When I publish it, I report an error。
Copy code
Could not find tools.jar. Please check that /usr/lib/jvm/java-1.8-openjdk contains a valid JDK installation.
Copy code
ull recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments.
Compiling with toolchain '/usr/lib/jvm/java-1.8-openjdk'.
Starting process 'Gradle Worker Daemon 1'. Working directory: /root/.gradle/workers Command: /usr/lib/jvm/java-1.8-openjdk/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /root/.gradle/caches/6.9.2/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker Daemon 1'
Successfully started process 'Gradle Worker Daemon 1'
Started Gradle worker daemon (0.624 secs) with fork options DaemonForkOptions{executable=/usr/lib/jvm/java-1.8-openjdk/bin/java, minHeapSize=null, maxHeapSize=null, jvmArgs=[], keepAliveMode=SESSION}.
Compiling with JDK Java compiler API.
:li-utils:compileMainGeneratedDataTemplateJava (Thread[Execution worker for ':' Thread 46,5,main]) completed. Took 1.604 secs.
[91m
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':li-utils:compileMainGeneratedDataTemplateJava'.
> Could not find tools.jar. Please check that /usr/lib/jvm/java-1.8-openjdk contains a valid JDK installation.

* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':li-utils:compileMainGeneratedDataTemplateJava'.
1
d
Hi - we have a mixed build with Java 8 and Java 11 - it will be helpful for you to look at our code repo and see how our build works!