Skip to content

Instantly share code, notes, and snippets.

@JonathanAaron
Last active September 6, 2016 13:12
Show Gist options
  • Save JonathanAaron/a1e101855ee82039d8ba to your computer and use it in GitHub Desktop.
Save JonathanAaron/a1e101855ee82039d8ba to your computer and use it in GitHub Desktop.
Install Java JDK and BlueJ in Ubuntu

Okay, Here's how I installed Java and BlueJ on Ubuntu.

Goto: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

  • Accept user agreement and find your download
  • Download: jdk-7u75-linux-x64.tar.gz

Open Terminal (Windows key and type terminal :) ):

Enter these commands:

This "unzips" that files:

  tar xvfz Downloads/jdk-7u75-linux-x64.tar.gz

This opens up .bashrc file in a text editor:

  gedit .bashrc

At the top of the file just add these two lines:

JAVA_HOME=/home/maverick/jdk1.7.0_75/
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin

Click Save Quit terminal and restart it.

java -version

If it says: java version "1.7.0._75" You did it!!! YAY!!!!

Download BlueJ:

  • Right click on the file and choose install with Ubuntu Software Center
  • Click install
  • Once it's finished just do a search for it and open it.
  • I'd right click the icon on your task bar and lock it to your dock.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment