Table of Contents
Preface
Part 1: The Java Development Environment
1
Understanding Java Distributions
Technical requirements
A little history
What makes Java special?
Why are there many distributions of Java?
Which Java should you get?
How is Java licensed?
Why are there so many versions of Java?
Installing Java
As an admin
As a non-admin
What is in the box?
Compiling and executing a Java program
Assembling and packaging a Java application
Documenting Java classes
REPL
Summary
Further reading
2
Code, Compile, and Execute
Technical requirements
The first program
JShell – REPL in Java
The two-step compile and execute process – javac and java/javaw
Launch Single-File Source-Code Programs
For Windows, macOS, and Linux
For macOS and Linux – Shebang ...
Get Transitioning to Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.