You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should find another way to find the JDK. With Gradle, there is no need to have a toolchain.xml file, or even any maven binaries / repo on a computer.
Caused by: java.lang.RuntimeException: Missing JDK with version [1.8] and one vendor in [[zulu]] config in toolchains.xml. Available JDKs: [JDK{home='/Users/mathieu/.jenv/versions/openjdk64-9', version='1.9', vendor='openjdk', valid=false}, JDK{home='/Users/mathieu/.jenv/versions/oracle64-1.8.0.144', version='1.8', vendor='Oracle Corporation', valid=false}, JDK{home='/Users/mathieu/.jenv/versions/zulu64-1.8.0.212', version='1.8', vendor='zulu', valid=false}]
at org.terracotta.angela.common.util.JavaLocationResolver.resolveJavaLocations(JavaLocationResolver.java:102)
at org.terracotta.angela.common.util.JavaLocationResolver.resolveJavaLocation(JavaLocationResolver.java:69)
at org.terracotta.angela.common.distribution.DistributionController.buildEnv(DistributionController.java:68)
at org.terracotta.angela.common.distribution.Distribution107Controller.createTsa(Distribution107Controller.java:72)
at org.terracotta.angela.common.TerracottaServerInstance.create(TerracottaServerInstance.java:94)
at org.terracotta.angela.agent.AgentController.createTsa(AgentController.java:278)
at org.terracotta.angela.client.Tsa.lambda$create$4baf3c22$1(Tsa.java:227)
at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C4.execute(GridClosureProcessor.java:1944)
at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:568)
at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6820)
at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:562)
Perhaps this method could be refactored to take a property file as a config somewhere, which could be optional, and if not provided (i.e. on our local dev computers, then switch back to the default JDK of the computer ?)
The main reason why Angela relies on the toolchains file is to solve the following problem:
Angela needs to be able to execute remotely (with ssh) a java process which will handle the remote installation/control of other processes (Terracotta server, test client, etc.)
Therefore, the remote toolchains is read in order to resolve the remote java executable location.
The only option I see currently would be to remotely execute a script to get the JAVA_HOME variable in case the toolchains is not found
saurabhagas
changed the title
Missing JDK with version [1.8] and one vendor in [[zulu]] config in toolchains.xml
Provide an alternative to toolchains.xml
Mar 23, 2020
We should find another way to find the JDK. With Gradle, there is no need to have a toolchain.xml file, or even any maven binaries / repo on a computer.
Perhaps this method could be refactored to take a property file as a config somewhere, which could be optional, and if not provided (i.e. on our local dev computers, then switch back to the default JDK of the computer ?)
The text was updated successfully, but these errors were encountered: