Lecturer: Boris Glavic
Semester: Spring 2019
java
) which allows compiled java byte code to be executedjavac
which compiles java source code to byte code
*java
binary to start a virtual machine and execute code$java -cp <class_path> <class_name>
<class_path>
- the class path is a colon-separated list of directories and jar files which contain the classes which are needed to run the main method of <class_name>
java
compiler to compile java source files (.java
) into byte-code for the VM (class
) files$javac -cp <class_path> -d <outdir> <source_files>
.class
files are stored in a package directory structure in folder <outdir>
.jar
files.jar
files are a convenient way to package your compiled java codejdb
when discussing debugging