Skip to content

cuongndc/java-in-60-minutes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

java-in-60-minutes

Java πŸ‘ΈπŸ», I hate 🀬 you.

βœ… Setup environment 🌳 on MacOS πŸ‘©πŸΌβ€πŸ’» (5 minutes)

  1. Download JDK: https://jdk.java.net/15/

  2. Extract it & move to /Library/Java/JavaVirtualMachines/

tar -xvf openjdk-15.0.1_osx-x64_bin.tar
sudo mv jdk-15.0.1.jdk /Library/Java/JavaVirtualMachines
  1. Open .bash_profile and add the following entries at the end of it.
JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home"
PATH="${JAVA_HOME}/bin:${PATH}"
export PATH
  1. Verify the JDK installation
java --version
  1. Download Maven: https://maven.apache.org/download.cgi

  2. Extract it & move to /opt

tar -xvf apache-maven-3.6.3-bin.tar
sudo mv apache-maven-3.6.3/ /opt
  1. Open .bash_profile and add the following entries at the end of it.
export PATH=/opt/apache-maven-3.6.3/bin:$PATH
  1. Verify the Maven installation
mvn --version

βœ… Java Core πŸ‘» (20 minutes)

public class AwesomeJava {
    public static void main(String[] args) {
        System.out.println("Hello πŸ–– Java. I love ❀️ you.");
    }
}

Details

βœ… Spring Boot πŸ’… (30 minutes)

Details

βœ… Docker 🐳 (5 minutes)

Details