Java is installed, in listing, but execution produces “./java: No such file or directory”

后端 未结 2 2071
抹茶落季
抹茶落季 2020-12-06 00:48

I just ran the script below and it fetches and unpacks the JDK into the correct location. Problem is that every java command (as copied to /urs/bin) gi

2条回答
  •  情书的邮戳
    2020-12-06 01:04

    I was getting the

    bash: /usr/bin/java: No such file or directory

    The issue was I installed the i586 version of Java on a x86_64 Debian.

    The fix: I removed it and install the x64 version of Java. Everything is working fine now.

提交回复
热议问题