[268] bash: jar: command not found

Open source software supply chain lighting plan, waiting for you>>>

/bin/bash: jar: command not found

Solution:

cd /usr/bin

You must enter/usr/bin first, the same below

sudo ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/jar

My JDK is installed in/usr/lib/JVM/jdk1.6.0_ 30/under the directory

If javah: common not found is prompted, follow the example and enter the command

cd /usr/bin
ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/javah

This article is shared in the blog “Zhou Xiaodong” (CSDN).

Similar Posts: