How to install java and eclipse on linux

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to install java and eclipse on linux相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

How to install Docker and deploy a LAMP Stack

2018 How to register and install LAUNCH ICARSCAN software ?

How to Install Node.js and NPM on Mac OS

How to compile and install VASP 5.4.1 on Ubuntu 16.04 LTS

sh 来自http://mixeduperic.com/ubuntu/how-to-install-open-ssh-server-on-ubuntu-and-linux-mint.html

sh 来自http://mixeduperic.com/ubuntu/how-to-install-open-ssh-server-on-ubuntu-and-linux-mint.html