本文主要是介绍ubuntu 16.04 openjdk安装配置 、phpEclipse插件安装、配置Xdebug,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
相关环境:
ubuntu16.04
php7.0
Xdebug2.4
openjdk version “1.8.0_91”
openjdk的安装及配置
#安装openjdk:
edemon@linux:~\$ sudo apt install default-jre
edemon@linux:~$ whereis jvm
jvm: /usr/lib/jvm
edemon@linux:~$ cd /usr/lib/jvm
edemon@linux:/usr/lib/jvm$ ls
default-java java-1.8.0-openjdk-amd64 java-8-openjdk-amd64
edemon@linux:/usr/lib/jvm/java-1.8.0-openjdk-amd64$ ls
ASSEMBLY_EXCEPTION docs jre man THIRD_PARTY_README
bin include lib src.zip#修改配置文件:
edemon@linux:/usr/lib/jvm/java-1.8.0-openjdk-amd64$ sudo gedit ~/.bashrc#加入内容:
export JAVA_HOME=/usr/lib/jvm/usr/lib/jvm/java-1.8.0-openjdk-amd64
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
edemon@linux:/usr/lib/jvm/java-1.8.0-openjdk-amd64$ source ~/.bashrc
edemon@linux:/usr/lib/jvm/java-1.8.0-openjdk-amd64$ java -version
#出现下面内容则正确:
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-0ubuntu4~16.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
#测试:
edemon@
这篇关于ubuntu 16.04 openjdk安装配置 、phpEclipse插件安装、配置Xdebug的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!