C # to Java, install JDK on Linux Ubutu, and run Java programs
Then choose Java, naturally the self-written program to be able to run on each OS,
Here are the installation tutorials, which are installed online via the network, and then several commands are lost, and it's easy to
I test effective
Install Oracle Java8 under Ubuntu
Ubuntu-provided openjdk often have strange and strange errors, such as an IDE that suddenly collapses. Just java8, why not try out the latest Java on the latest Ubuntu.
First add PPA
$ sudo add-apt-repository Ppa:webupd8team/java
Then update the system
$ sudo apt-get update
Finally start the installation
$ sudo apt-get install Oracle-java8-installer
$ java-version
Java version "1.8.0_05" Java (tm) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot (tm) Server VM (Build 25.5-B02, mix Ed mode)
Java version switching
sudo update-java-alternatives-s java-8-oracle
Transfer from http://blog.csdn.net/feelang/article/details/24425349
C # to Java, install JDK on Linux Ubutu, and run Java programs