Giter VIP home page Giter VIP logo

oracle-jdk-installer's Introduction

oracle-jdk-installer

A simple script that sets up your system to use Java 7+ since Oracle removed its packages from Ubuntu 12.04

Please download the JDK package according to your system from here:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

From the 'Java Platform, Standard Edition' option choose the JDK download and then download the file for your system. Please note that this script is tested only on Ubuntu so you should download one of the 'Linux x86', 'Linux x64' and specifically the one that's compressed (ending in .tar.gz ).

Put the downloaded file in the same folder as the installer ( .sh ) file and run it with root privileges.

Usage

sudo ./jdk-installer.sh javaCompressedTarFile System-bits

javaCompressedTarFile
  Path to the downloaded jdk file
System-bits
  -32 or -64 according to your system architecture

Examples

Used on my Thinkpad T430 64-bit Ubuntu 12.04 LTS ::

  The file I downloaded for my system is: jdk-7u5-linux-x64.tar.gz
  The command I executed: sudo ./jdk-installer jdk-7u5-linux-x64.tar.gz -64
  
Used on my Toshiba Satellite A300D 32-bit Ubuntu 12.04 LTS ::

  The file I downloaded for my system is: jdk-7u5-linux-i586.tar.gz
  The command I executed: sudo ./jdk-installer jdk-7u5-linux-i586.tar.gz -32

Verify the setup

In order to verify that it got installed successfully you can try the following checks. Note that the following program is the most important but you could check all the binaries that are installed this way:

java -version

You should get a response like:

java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)

In order to verify that the browser plugin works visit the following webpage and click 'Verify Java version' http://www.java.com/en/download/installed.jsp

Problems

You may get some warnings for some manual pages trying to be set up and do not exist. Ignore them and you should be fine.

oracle-jdk-installer's People

Contributors

lambrospetrou avatar fbnfgc avatar

Stargazers

 avatar JMV avatar /// avatar Angus H. avatar Anthony Scalisi avatar  avatar  avatar

Watchers

 avatar James Cloos avatar Andrey Panov avatar Anthony Scalisi avatar  avatar  avatar

oracle-jdk-installer's Issues

update-java-alternatives

I have no update-java-alternatives installed on fresh Ubuntu 12.04, so I have to: apt-get install java-common

By default I have: update-alternatives --config java

Thanks for great script! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.