Skip to content

Commit

Permalink
Using jar from javac location
Browse files Browse the repository at this point in the history
  • Loading branch information
judovana committed Feb 29, 2024
1 parent ed56f8b commit 8ea318f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function ljava() {
echo "use java from JAVA_HOME [${LJAVA}]"
echo "use javac from JAVA_HOME [${LJAVAC}]"
elif [ $( which java ) ]; then
LJAVA=$( which java )
LJAR=$( which jar )
LJAVAC=$( which javac )
LJAVA=$( readlink -f $(which java) )
LJAVAC=$( readlink -f $(which javac) )
LJAR="$(dirname ${LJAVAC})/jar"
echo "use java from PATH [${LJAVA}]"
echo "use java from PATH [${LJAVAC}]"
else
Expand Down

0 comments on commit 8ea318f

Please sign in to comment.