Java command not found on Linux
问题 In Oracle Enterprise Linux when I type java I am getting bash: java: command not found I have installed Java 1.6 and I have the following sudo update-alternatives --config java There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- * 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java + 2 /usr/java/jre1.6.0_24/bin/java How can I resolve this issue? Thanks 回答1: You can add one of the Java path to PATH variable using the following command. export PATH=