Giter Club home page Giter Club logo

oracle-java7-installer's Introduction

oracle-java7-installer

Breaking the Oracle Terms of Service in the nicest possible way.

Until very recently, it was possible to get sun-java7-jdk packages directly from Ubuntu. Then Oracle changed their TOS.

Then someone made an installer, which was ok.. But I wanted a debian package format.

So, all you need to do is:

For Java 7 u80:

  1. Download the jdk-7u80-linux-x64.tar.gz file

  2. Drop that file in src/var/cache/oracle-jdk7-installer/jdk-7u80-linux-x64.tar.gz

  3. Install vagrant, virtualbox (you may need to log out and log in because you added a user to the vboxusers group)

sudo apt-get update
sudo apt-get install vagrant
  1. Setup JAVA_VERSION variable in the env.vars
PATH=/home/vagrant/bin:$PATH
JAVA_VERSION=7u80
  1. (Оptional) Setup distro name in the Vagrantfile
    db.vm.box = "ubuntu/xenial64"
  1. Run building oracle java package
vagrant up
  1. Builded package package will appear in the current directory, for example
ls -1 *.deb
oracle-java7-installer_7u80-custom-xenial-r100_amd64.deb

The biggest reason for doing it this way rather than using http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html is because this way gives you a fat .deb file containing java, so you can install it in places that might not have connectivity (or have slow connectivity).

Also, Oracle will probably cripple the webupd8 method at some point, probably by putting a captcha in front of the downloads page. Wouldn't surprise me. The advantage of doing it this way is you do it once, update the deb build environment. Build the deb, install it. Done.

oracle-java7-installer's People

Contributors

tomoconnor avatar

Watchers

 avatar

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.