首页 > 编程语言 > 详细

How to install java and eclipse on linux

时间:2016-09-16 15:32:47      阅读:218      评论:0      收藏:0      [点我收藏+]

First of all, download from the website of java.

I download ‘jdk-8u102-linux-i586.tar.gz‘

unzip it to the specifical derictory.

 

with the command:tar -zxvf jdk-8u102-linux-i586.tar.gz -C /home/sonn/Workspace/softwares/sonn_java/

 

then you just need to set the sys Path.with the commands:

技术分享

sudo gedit /etc/environment

技术分享

and the command ‘source /etc/environment‘ to make it effective.

 

sudo gedit /etc/profile:

技术分享

 

finally reboot the PC. and you can see if it have become effective.

技术分享

then you can install eclipse, download and unzip.and go to the directory run command the file ‘eclipse‘ to startup.

but..........................................................

技术分享

 

that‘s really disgusting problem.

At last I found it was because I installed the jdk which was for 32-bit linux.

reinstall jdk with the right edition.

技术分享

 

O.K.

THEN I CAN DEVELOP JAVA ON MY UBUNTU.

ENJOY IT.

How to install java and eclipse on linux

原文:http://www.cnblogs.com/rixiang/p/5876377.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!