The name of the le must match with the
name of the class
Coverts the source code (.java les) to
bytecode by the same name but Bytecodes consist of instructions that JVM
with .class extension knows how to execute
Each file can contain only one public class
COMPILER (JAVAC)
Location of classes needed tu run the java -cp or java -classpath or java - -
program class-path + <classpath>
Comands
Directory to place generated class files -d <dir>
The main () method lets the JVM call our
code (it has to be static and named main)
The purpose is to provide a programming
Is an abstract machine which provides an environment that abstracts away the
Creates Java Virtual Machine (JVM) environment to execute the java byte things of particular hardware or OS (cross
code (.class les) platform)
When running a Java Program, you just
LAUNCHER (JAVA) pass the name of the class without .class
extension
JAVA DEVELOPMENT
KIT (JDK) Comands
Location of classes needed tu run the java -cp or java -classpath or java - -
program class-path + <classpath>
Package the files together
Create a new JAR file jar -c or jar - - create
ARCHIVER (JAR)
Print details when working with JAR Files jar -v or jar - - verbose
Commands
JAR file name jar -f or jar - - le + < lename>
Directory containing les to be used to
jar -C <directory>
created the JAR
API DOCUMENTATION
Generates documentation Use /** */ to comment
(JAVADOC)
fi
fi
fi
fi
fi
fi