Java Settings

1 Development Kit

1.1 Windows

Download and execute .exe files.

1.2 Linux

Thanks “WebUpd8” team. Everything becomes simple.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
sudo apt-get install oracle-java7-installer

2 Environment

2.1 Windows

JAVA_HOME = C:\Program Files (x86)\Java\jdk1.7.0_05;

2.2 Linux

For example, (Manually installation need this though)

Set variables in profile.

sudo vim /etc/profile

Paste the following to the end of this file.

export JAVA_HOME
export JRE_HOME
export PATH

Add the new version of java, javac and javaws as an system alternative and give it priority 1.

sudo update-alternatives –install “/usr/bin/java” “java” “/usr/lib/java/[jdk]/bin/java” 1
sudo update-alternatives –install “/usr/bin/javac” “javac” “/usr/lib/java/[jdk]/bin/javac” 1
sudo update-alternatives –install “/usr/bin/javaws” “javaws” “/usr/lib/java/[jdk]/bin/javaws” 1

To config multiple versions.

sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws

Finally, put everything online.


3 IDE & Dev Issues

IntelliJ IDEA


Posted on 2013-02-27, in IT and tagged , . Bookmark the permalink. 一条评论.


Fill in your details below or click an icon to log in: 徽标

您正在使用您的 账号评论。 注销 /  更改 )

Google photo

您正在使用您的 Google 账号评论。 注销 /  更改 )

Twitter picture

您正在使用您的 Twitter 账号评论。 注销 /  更改 )

Facebook photo

您正在使用您的 Facebook 账号评论。 注销 /  更改 )

Connecting to %s

%d 博主赞过: