Syndicate content

Installing Oracle Java on Ubuntu, very easy

I don't personally program in Java, but since I use Cassandra, Java is a requirement on my system.

The OpenJdk works, but it is presented as having problems when running Cassandra. Having run in a problem (see on Stack Overflow,) I thought I would finally give a chance to Oracle and install their version to see whether that was the culprit.

I was really thinking that the OpenJdk was working fine because I have two other systems working just fine, but those two systems have Ubuntu 12.10 opposed to version 12.04 in my case.

Anyway, it was very easy to install Java and I did not have to make any changes to the existing installation (And thus the different things running Java could continue as is.)

The commands look like this:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

That's it! It will automatically change the alternatives to that new version of Java. Once installed you can test with java -version to see that it tells you java version "1.7.0_11" (or whatever version you're installing.)



Syndicate content


Terms of Site Index

Find the page/content you are looking for with our index.

  • dump

    The dump command, under a Unix system, is used to dump the entire file system to another device. By default, the dump output device is a tape device (/dev/tape). Now a day, however, it is often used with other devices such as another file system (from one hard drive to another.)

    Other systems use that same keyword. It is particularly the case of database systems. For instance, the PostgreSQL database has a pg_dump command.

    The opposite command is restore. That command is used to get the data from the output device and put it back on your hard drive.

  • group
  • office
  • PHP

    The VACUUM instruction is used by PostgreSQL to query the server in cleaning up the corresponding database cluster. The work done is simply to remove the unused rows and clearly mark them are available. The VACUUM FULL command will go the extra distance of pushing the data so as to make the tables as small as possible. The command can be run on a per table basis.