/java

java

Primary LanguageJava

java

java

Install Java

https://gist.github.com/JeOam/a926dbb5145c4d0789c1

brew install java 8

brew cask install caskroom/versions/java8
java -version
ls /Library/Java/JavaVirtualMachines/
jdk1.8.0_162.jdk

brew install Maven

  • set JAVA_HOME in ~/.bash_profile
atom ~/.bash_profile

add following to the end of the ~/.bash_profile

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
echo $JAVA_HOME
  • install maven
brew install maven
mvn -version
  • brew install java 9 brew cask install java brew cask uninstall java

Install IDE

Intellij

  • install Intellij Community Edition https://www.jetbrains.com/idea/

  • setup SDK - Java Home path is /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home

  • clear caches

/Users/whan/Library/Caches

Shortcut	Description
Alt Enter	Show the list of available intention actions.
  • Path echo $JAVA_HOME

  • Edit Path Environment atom ~/.bash_profile touch ~/.bash_profile; open ~/.bash_profile export ORGANIZATION="Tony's Pizza" - set environment variable echo $ORGANIZATION

  • kb Error: Could not find or load main class @{surefireArgLine} Solution: Build, Execution, Deployment, Build Tools, Maven, Running Tests, uncheck argline

Windows

note: download and install Windows x64 packages