Skip to content

Instantly share code, notes, and snippets.

@5car1z
Last active September 1, 2016 10:15
Show Gist options
  • Save 5car1z/a6451eb32a69a2f16065f6467fbe8a40 to your computer and use it in GitHub Desktop.
Save 5car1z/a6451eb32a69a2f16065f6467fbe8a40 to your computer and use it in GitHub Desktop.
README instructions for Postcode Java Program.

HOW TO USE postCode.jar

  1. Run jar file through command terminal.

  2. User should be prompted by 6 option menu.

  3. Follow instuctions for adding data.

  4. Exporting should produce 2-3 files depending on users choices.


Installing and Using on Ubuntu 16.04 (Linux)

Install Java - Oracle JDK 8 as described in: How To Install Java with Apt-Get on Ubuntu 16.04

In summary these are the steps needed from the above article.

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo update-alternatives --config java
$ sudo nano /etc/environment

Replace the path in the quotes below with the path from the previous command's output. Then save and exit the file.

$ JAVA_HOME="/usr/lib/jvm/java-8-oracle"
$ source /etc/environment
$ echo $JAVA_HOME

Now you can run the program as intended.

$ java -jar postCode.jar 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment