Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Java
(view source)
Revision as of 07:48, 28 November 2017
671 bytes added
,
07:48, 28 November 2017
no edit summary
Line 1:
Line 1:
All the code can be found at: [https://github.com/rafahsolis/javaTutorial javaTutorial]
All the code can be found at: [https://github.com/rafahsolis/javaTutorial javaTutorial]
+
== Install ==
+
=== With apt ==
+
<nowiki>sudo apt-add-repository ppa:webupd8team/java
+
sudo apt-get update
+
sudo apt-get install oracle-java8-installer</nowiki>
+
+
Also ensure your JAVA_HOME variable has been set to:
+
/usr/lib/jvm/java-8-oracle
+
+
=== From Source ===
+
wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz
+
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/oracle_jdk8/jre/bin/java 2000
+
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/oracle_jdk8/bin/javac 2000
+
update-alternatives --display java
+
update-alternatives --display javac
== hello world ==
== hello world ==
<source lang="java">
<source lang="java">
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version