代码拉取完成,页面将自动刷新
#!/bin/bash
echo "[Requirement-Java] Requirement JDK 8.0+ and env of JAVA_HOME."
if [ -z "${JAVA_HOME}" ]; then
echo "[Requirement-Java] JAVA_HOME is not exists!"
echo "[Requirement-Java] Please check java is installed and set env of JAVA_HOME."
exit 1
else
echo "[Requirement-Java] JAVA_HOME: ${JAVA_HOME}"
fi
if [ ! -x "${JAVA_HOME}/bin/javac" ]; then
echo "[Requirement-Java] Java not found!"
echo "[Requirement-Java] Please install JDK 8.0+ or JRE 8.0+"
exit 1
fi
JAVA_VERSION=`java -version 2>&1 |awk 'NR==1{ gsub(/"/,""); print $3 }'`
echo "[Requirement-Java] JAVA_VERSION: ${JAVA_VERSION}"
if [[ "$JAVA_VERSION" < "1.8" ]]; then
echo "[Requirement-Java] Please install JDK 8.0+ or JRE 8.0+"
exit 1
fi
cd `dirname $0`
BIN_DIR=`pwd`
echo "[BIN_DIR] BIN_DIR: ${BIN_DIR}"
java -jar mybatis-generator-gui.jar
if [ $? -ne 0 ]; then
echo "start jar fail"
exit -1
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。