![]() See Standard Options for a description of the option and Command-Line Argument Files for a description of javac argument files. There are two ways to specify source files to javac:įor a small number of source files, you can list their file names on the command line.įor a large number of source files, you can use the filename option on the command line to specify an argument file that lists their file names. For example, a class called Shape would be declared in a source file called Shape.java, and compiled into a class file called Shape.class. Both source and class files normally have file names that identify the contents. Class files have a file name extension of. Source files must have a file name extension of. The javac command can also process annotations in Java source files and classes. ![]() The javac command reads source files that contain module, package and type declarations written in the Java programming language, and compiles them into class files that run on the Java Virtual Machine. Sourcefiles-or-classnames Source files to be compiled (for example, Shape.java) or the names of previously compiled classes to be processed for annotations (for example, geometry.MyShape). Javac - read Java declarations and compile them into class files Synopsis ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |