wget http://192.168.1.40/apps/jdk-6u21-linux-x64.binchmod +x jdk-6u21-linux-x64.bin
sh jdk-6u21-linux-x64.bin
<< [q, yes]mkdir /usr/local/jdk
mv jdk1.6.0_21/ /usr/local/jdk
ln -s /usr/local/jdk/jdk1.6.0_21 /usr/javatouch /etc/profile.d/java.sh
chmod 755 /etc/profile.d/java.shvi /etc/profile.d/java.sh
#!/bin/sh
JAVA_HOME=/usr/java
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME PATHsource /etc/profile.d/java.shenv | grep JAVAjava -version
ru shang anzhuang java , dan yun xing eclipse de shihou tishi A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/home/josiahliang/eclipse/jre/bin/java
java in your current PATH
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/home/josiahliang/eclipse/jre/bin/java
java in your current PATH
程序“java”已包含在下列软件包中:
* gcj-4.4-jre-headless
* gcj-4.5-jre-headless
* openjdk-6-jre-headless
请尝试:apt-get install <选定的软件包>
is above things is ok? or not enough
path
什么的环境变量没有配置?