Skip to content

Commit

Permalink
Merge pull request #20 from judovana/jar
Browse files Browse the repository at this point in the history
Using jar from javac location
  • Loading branch information
judovana committed Feb 29, 2024
2 parents ed56f8b + 8ea318f commit 4f9411e
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 4f9411e

Please sign in to comment.