Skip to content

Instantly share code, notes, and snippets.

@wrpinheiro
Last active May 24, 2016 20:11
Show Gist options
  • Save wrpinheiro/2978cd1a855737954f9869b69c1ad3f1 to your computer and use it in GitHub Desktop.
Save wrpinheiro/2978cd1a855737954f9869b69c1ad3f1 to your computer and use it in GitHub Desktop.
java-introduction

Introduction to Java

Installing tools

Testing your installation

Run in the terminal the following command:

javac -version

You should see something like:

javac 1.8.0_91

In the terminal run the following commands:

mkdir java-trainning
cd java-trainning
wget https://goo.gl/6sJFwF -O HelloWorld.java
javac HelloWorld.java
java HelloWorld

You should see the following message:

Hello World

FAQ

  • If running the command wget https://goo.gl/6sJFwF -O HelloWorld.java you get the message: bash: wget: command not found run the following command to install wget

    brew install wget
    
@rafael-buzon
Copy link

rafael-buzon commented May 24, 2016

And what about when the "brew" command is not found? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment