Spaces:
Sleeping
Sleeping
# Java ์ค์น ๊ฒฝ๋ก๋ฅผ ํ์ธํ๊ณ JAVA_HOME ์ค์ | |
export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::") | |
# JAVA_HOME์ด ์ ํจํ์ง ํ์ธ | |
if [ -d "$JAVA_HOME" ]; then | |
echo "JAVA_HOME is set to $JAVA_HOME" | |
else | |
echo "Java installation directory not found. Please install Java first." | |
exit 1 | |
fi | |
# PATH์ Java ๊ฒฝ๋ก ์ถ๊ฐ | |
export PATH=$PATH:$JAVA_HOME/bin | |
# LD_LIBRARY_PATH์ JVM ๊ฒฝ๋ก ์ถ๊ฐ | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/lib/server | |
# ํ๊ฒฝ ๋ณ์ ์ค์ ์ ํ์ธํ๊ธฐ ์ํด ์ถ๋ ฅ | |
echo "PATH is set to $PATH" | |
echo "LD_LIBRARY_PATH is set to $LD_LIBRARY_PATH" | |
# JPype ์ค์น (์ด๋ฏธ ์ค์น๋์ด ์๋ค๋ฉด ์ฌ์ค์น) | |
pip install --upgrade --force-reinstall JPype1 | |
# ์คํฌ๋ฆฝํธ ์คํ์ ์๋ฃํ๊ณ ์ฑ๊ณต ๋ฉ์์ง ์ถ๋ ฅ | |
echo "Environment setup complete." | |