android 编译源码 错误解决
2010-07-15 20:32:00 来源:WEB开发网在SUN官方网站上下载jdk-6u20-linux-i586.bin,然后直接安装,安装完成后设置以下几个环境变量即可:
export JAVA_HOME=/home/dev/developer/java/jdk1.6.0_20
export JAVA_BIN=/home/dev/developer/java/jdk1.6.0_20/bin
export CLASSPATH=/home/dev/developer/java/jdk1.6.0_20/lib:/home/dev/developer/java/jdk1.6.0_20/jre/lib:$CL
ASSPATH
export PATH=/home/dev/developer/java/jdk1.6.0_20/bin:/home/dev/developer/java/jdk1.6.0_20/jre/bin:$PATH
测试一下:
dev@dev-desktop:~$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
dev@dev-desktop:~$
=====================================================================================
http://java.sun.com/javase/6/webnotes/install/jdk/install-linux-self-extracting.html
JavaTM SE 6 Release Notes
JDK Self-Extracting Binary Installation for Linux (32-bit)
Installation Instructions
This procedure installs the Java Development Kit (JDK) for 32-bit Linux, using a self-extracting binary file. The JDK download includes the Java SE Runtime Environment (JRE) ? you do not have to download the JRE separately.
For RPM-based Linux distributions, like Red Hat or SuSE, refer to the RPM installation instructions.
The name of the downloaded file has the following format:
jdk-6u
where
jdk-6u18-linux-i586.bin
To install, download this file and use the following instructions.
1. Download and check the download file size.
You can download to any directory that you can write to.
This bundle can be installed by anyone (not only root users), in any
更多精彩
赞助商链接