Foundation

Setting Up Java

Install it, run it by hand, understand what you installed.

Which JDK to install and why there are so many, what JAVA_HOME and PATH actually decide, and a first program you compiled and ran yourself rather than clicked a button on. Short, practical, and the reason nothing later says "it works on my machine".

8 lessons written3 modules~1h reading

After this course you can

  • Choose a JDK distribution and version deliberately rather than by accident
  • Install one and prove which java and javac are running
  • Compile and run a program from the command line, and read the errors when it fails
  • Explain why a class in a package must be run by its full name
  • Use JShell to try a line of Java without writing a class

Curriculum

8 lessons · outlined lessons show their plan