debian9 JDK環境變量設置
感謝 http://www.mkyong.com/java/how-to-install-oracle-jdk-8-on-debian/,讓我解決了問題
本來以為debian與centos的環境變量設置是一樣的,修改/etc/profile就可以了,但是修改完成後,一直顯示的是
[email protected]:/home/java# java -version java version "1.5.0" gij (GNU libgcj) version 6.3.0 20170516 Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [email protected]