Getting started
This part of the Java course puts a JDK on the machine and takes a first program through the compiler: what Java is, the bytecode it becomes and the machine that runs it, the package of each system on Linux, macOS and Windows, the editor and IntelliJ IDEA with javac -d out, the first Main.java built and run on this machine. The warnings that -Xlint:all prints come next, with the shape of a diagnostic and a deliberate error, then packages and the class path, and jshell, the REPL that runs a snippet without a file.
001
What Java is and where it runs
the language, bytecode and the JVM, JDK against JRE, a first program built and run, the source launcher
Open
002
Install a JDK on Linux, macOS and Windows
the package per system and the install pages, java -version, JAVA_HOME, PATH, the version of this course
Open
003
An editor, IntelliJ and javac
the edit-build-run loop, the editor and the IntelliJ page, javac -d out, the class file, javap, javadoc
Open
004
Your first Java program
Main.java line by line, the public class and the file name, main, println, javac and java, the exit status, a missing semicolon
Open
005
Warnings, errors and -Xlint:all
unchecked and deprecation warnings, the shape of a diagnostic, -Werror, a deliberate error, a clean build that prints nothing
Open
006
Packages and the classpath
package, the folder it expects, -d, import, the classpath, the unnamed package, the file-name error
Open
007
jshell: Java without a file
the REPL, snippets, /vars, /methods, /save, /open, and why the lessons still use files
Open