Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fab0c89

Browse files
committed
Configured %JAVA_HOME%.
Signed-off-by: Guzio <star.master.123.mg@gmail.com>
1 parent f03b982 commit fab0c89

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

‎installjava‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ then
1616
echo
1717
exit
1818
else
19-
#Checking, whether is someone trying to cheat and simplyfy their instalLation it on Linux (i.e. x86 (not listad, as you can see) machine)
19+
#Checking, whether is someone trying to cheat and simplyfy their installation it on Linux (i.e. x86 (not listad, as you can see) machine) using this script, which have no reason to work.
2020
case `dpkg --print-architecture` in
2121
aarch64)
2222
archname="aarch64"; tag="v8" ;;
@@ -43,8 +43,13 @@ else
4343
cd $PREFIX/share
4444
tar -xhf jdk8_${archname}.tar.gz
4545

46-
ee "\e[32m[*] \e[34mMoving Java wrapper scripts to bin..."
47-
mv bin/* $PREFIX/bin
46+
ee "\e[32m[*] \e[34mSeting-up %JAVA_HOME%..."
47+
export JAVA_HOME=$PREFIX/share/jdk8
48+
echo "export JAVA_HOME=$PREFIX/share/jdk8" >> $HOME/.profile
49+
50+
ee "\e[32m[*] \e[34mCoping Java wrapper scripts to bin..."
51+
#I'm not 100% sure, but getting rid of bin contnent MAY cause some issues with %JAVA_HOME%, thus it's no longer moved - copied instead. Sorry to everyone short on storage.
52+
cp bin/* $PREFIX/bin
4853

4954
ee "\e[32m[*] \e[34mCleaning up temporary files..."
5055
rm -rf $HOME/installjava
@@ -54,4 +59,4 @@ else
5459
echo
5560
ee "\e[32mJava was successfully installed!\e[39m"
5661
echo
57-
fi
62+
fi

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /