惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
Engineering at Meta
Engineering at Meta
AI
AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Schneier on Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
T
Threat Research - Cisco Blogs
B
Blog
K
Kaspersky official blog
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
U
Unit 42
NISL@THU
NISL@THU
D
Docker
Vercel News
Vercel News
C
Check Point Blog
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
C
CERT Recently Published Vulnerability Notes
J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
Latest news
Latest news
Martin Fowler
Martin Fowler
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
Know Your Adversary
Know Your Adversary
A
Arctic Wolf
L
LINUX DO - 热门话题
IT之家
IT之家
SecWiki News
SecWiki News
博客园 - 【当耐特】
Schneier on Security
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
The Last Watchdog
The Last Watchdog
S
Secure Thoughts
P
Proofpoint News Feed
N
News and Events Feed by Topic
S
Security @ Cisco Blogs
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
爱范儿
爱范儿
罗磊的独立博客
C
Cyber Attacks, Cyber Crime and Cyber Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Cloudbric
Cloudbric
O
OpenAI News
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

博客园 - sunliho

Java ClassLoader and Context ClassLoader find flow scope varibles in spring web flow Building Liferay on Tomcat Debugging Liferay in Eclipse ssl 服务器证书,客户端信任证书 相对路径与绝对路径 - sunliho - 博客园 db2 command 标准sql Linux系统下架设APACHE SVN服务器全过程 修改ip地址 mysql in linux network configuration in linux Linux系统信息查看命令大全 linux常用命令 Permission denied in linux generic dao hibernate.cfg.xml 配置(摘录) - sunliho - 博客园 hibernate 配置文件(摘录) - sunliho - 博客园 web.xml配置详解(摘录)
install jdk in linux
sunliho · 2010-08-25 · via 博客园 - sunliho

1.JDK1.6安装准备

从sun公司网站www.sun.com下载linux版本的jdk,我下载的版本是JDK 6 Update 7,

地址http://java.sun.com/javase/downloads/index.jsp

jdk-6u7-linux-i586.bin,打开终端,用cd命令进入jdk所在目录,执行复制命令

sudo cp jdk-6u7-linux-i586.bin /usr

即将jdk复制到/usr目录下,然后进入/usr目录cd /usr

执行权限

chmod +x jdk-6u7-linux-i586.bin

执行安装命令

./jdk-6u7-linux-i586.bin

如遇错误,可先切换至root用户下,su root,再执行安装命令

安装成功会在/usr目录下生成jdk1.6.0_07目录,就是jdk的安装目录

重启电脑,打开终端,输入java -version

如若有显示java的版本信息,则表示安装成功,

2.JDK1.6安装后的配置

安装成功后需要配置jdk环境变量

用cd命令进入/etc目录sudo vi profile即执行编辑profile文件命令

在umas k022前添加如下内容:

export JAVA_HOME=/usr/jdk1.6.0_07

export JRE_HOME=/usr/jdk1.6.0_07/jre

export PATH=$PATH:/usr/jdk1.6.0_07/bin

export CLASSPATH=./:/usr/jdk1.6.0_07/lib:/usr/jdk1.6.0_07/jre/lib

保存退出,重启电脑