Home  >  Article  >  Backend Development  >  遇到JDK的有关问题 请大家帮助一上

遇到JDK的有关问题 请大家帮助一上

WBOY
WBOYOriginal
2016-06-13 11:16:541075browse

遇到JDK的问题 请大家帮助一下
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse for PHP Developers. No Java virtual machine
was found after searching the following locations:
/opt/eclipse-php/jre/bin/java
java in your current PATH


现在我所知道的就是没有安装JDK JRE 但我在网上也下载过类似jdk-7u1-linux-i586.tar.gz文件 但是安装不了出现
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

请大家帮助一下  我研究很久啦  还是不行!!!


------解决方案--------------------
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

看我上次给你的教程
http://blog.csdn.net/phpnewnew/article/details/6926976


注意一下 文件名不要照抄.针对你上面的问题如下处理

1.重新下载java sdk
2.如果仍然出现上面错误提示

a.重命名 下载的文件xxxxx.tar
b.再执行解压命令: tar -zxvf xxxxx.tar
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn