legendtkl opened a new issue #1146:
URL: https://github.com/apache/incubator-linkis/issues/1146


   **Describe the bug**
   Now env JAVA_HOME path is hard code in shell scripts: `linkis-cli` and 
`linkis-cli` as follow:
   ```shell
     local JAVA8_HOME_CANDIDATES='\
       /usr/java/jdk1.8* \
       /nemo/jdk1.8*'
   
     JAVA_HOME_CANDIDATES="$JAVA8_HOME_CANDIDATES"
   
     # attempt to find java 8
     flag=""
     for candidate_regex in $JAVA_HOME_CANDIDATES ; do
         for candidate in `ls -rd $candidate_regex 2>/dev/null`; do
           if [ -e $candidate/bin/java ]; then
             export JAVA_HOME=$candidate
             flag="true"
             break 2
           fi
         done
     done
   ```
   
   It's better to check the ENV JAVA_HOME firstly.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to