Skip to content

Java Notes

  1. Determine location of Java on Mac OS X
    1. echo $(/usr/libexec/java_home)
  2. Using Ivy with Ant
    • Download Apache Ivy
      1. Put files into ant/lib directory.
      2. Lib directory at ~/.ant/lib - Using sdkman to manage Ant.

Resources

JHipster

Resources

Dev Notes

  • Tell Gradle to use a specific jdk version = Point to Java8 -
    • In gradle.properties - on Mac OS X with SDKMAN installed org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home

Learning to use Spring

Steps

  • Start with maven
  • mvn archetype:generate -DgroupId=za.co.catenare.tutorial -DartifactId=tutorial -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
  • cd tutorial
  • mvn package
  • java -cp target/tutorial-1.0-SNAPSHOT.jar za.co.catenare.tutorial.App
    • Runs the App

Last update: April 13, 2020 16:50:19