forked from jerryshen/hansay.com
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add post how to install jdk on ubuntu 11.10
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
layout: post | ||
title: How to Install JDK on Ubuntu 11.10 | ||
categories: | ||
- linux | ||
--- | ||
|
||
最近在玩solr, 需要用到java环境, 但是ubuntu官方源中却没有jdk安装包, 经过一些研究, 发现以下方案即可解决安装问题: | ||
|
||
> sudo apt-get install python-software-properties | ||
> sudo add-apt-repository ppa:ferramroberto/java | ||
> sudo apt-get update | ||
> sudo apt-get install sun-java6-jdk | ||
|
||
Ubuntu中经常会用到添加ppa源的时候, 确实方便. |