lide-reed commented on issue #6100:
URL: 
https://github.com/apache/incubator-doris/issues/6100#issuecomment-894919172


   In the docker image of build-env-1.3, both OpenJDK 8 and OpenJDK 11 are 
included, and OpenJDK 11 is used for compilation by default. Please make sure 
that the JDK version used for compiling is the same as the JDK version used at 
runtime, otherwise it may cause unexpected operation errors. You can use the 
following command to switch the default JDK version in container:
   Switch to JDK 8:
   $ alternatives --set java java-1.8.0-openjdk.x86_64
   $ alternatives --set javac java-1.8.0-openjdk.x86_64
   $ export JAVA_HOME=/usr/lib/jvm/java-1.8.0
   Switch to JDK 11:
   $ alternatives --set java java-11-openjdk.x86_64
   $ alternatives --set javac java-11-openjdk.x86_64
   $ export JAVA_HOME=/usr/lib/jvm/java-11


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to