- Install Sublime: https://www.sublimetext.com/
- Install JDK:
brew tap caskroom/cask brew install brew-cask brew cask install java
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
-
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 installwget
brew install wget
And what about when the "brew" command is not found? :-)