0% found this document useful (0 votes)
1 views

Schema (JDK Java Development Kit)

The document outlines the Java development process, detailing the roles of the compiler (javac), Java Virtual Machine (JVM), launcher (java), archiver (jar), and API documentation generator (javadoc). It emphasizes the importance of matching class names with file names, the creation of bytecode, and commands for executing Java programs and managing JAR files. Additionally, it mentions the necessity of a main() method for program execution and provides command syntax for various operations.

Uploaded by

seabutterfly 9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Schema (JDK Java Development Kit)

The document outlines the Java development process, detailing the roles of the compiler (javac), Java Virtual Machine (JVM), launcher (java), archiver (jar), and API documentation generator (javadoc). It emphasizes the importance of matching class names with file names, the creation of bytecode, and commands for executing Java programs and managing JAR files. Additionally, it mentions the necessity of a main() method for program execution and provides command syntax for various operations.

Uploaded by

seabutterfly 9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like