Setup the system
Installing java/JDK
Knowing the difference between JDK, JRE and JVM
java -version
to verify
Setting up the path
Setup JAVA_HOME,
export JAVA_HOME=/<your_JDK_folder>
for macfor linus
export JAVA_HOME=/usr/local/jdk
setup java and javac path:
export PATH=$PATH:$JAVA_HOME/bin/
Installing and setting up IDE (Intellij)
Can use Eclipse or Netbeans, but Intellij is far better
Settings to use JDK
Create new project using maven and add java build in pom.xml
See for a common starter pom file https://github.com/hanfak/java-generics/blob/master/pom.xml
For options 'groupId' and 'artifactId' when asked, use a package structure like com. as groupId and name of project as artifactId.
Running a simple hello world program through Intellij to check it is working
Use of shortcuts ie
sout
andpsvm
Java Home
Links
Last updated
Was this helpful?