answersLogoWhite

0

The javac command is used to invoke Java's compiler and compile a Java source file.

A typical invocation of the javac command would look like below:

javac [options] [source files]

Both the [options] and the [source files] are optional parts of the command, and both allow multiple entries. The following are both legal javac commands:

javac -help

javac ClassName.java OneMoreClassName.java

The first invocation doesn't compile any files, but prints a summary of valid options. The second invocation passes the compiler two .java files to compile (ClassName.java and OneMoreClassName.java). Whenever you specify multiple options and/or files they should be separated by spaces.

This command would create the .class files that would be require to run the java progam.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Extension file for Java?

Java source files have the .java extension, compiled Java class files have the .class extension.


What do you compile?

Compiling is the act of translating human-readable source code to machine-readable byte code.In Java, the compiler program is javac


What does java generate after compiling the java source code?

Java compiles to Java byte code; the native language of the Java virtual machine (JVM). The JVM is essentially just an interpreter for Java byte code. Each supported platform has its own JVM implementation so the same Java byte code can be executed upon any platform without further compilation, unlike C++ where source code must be compiled separately for each supported platform. However, interpretation results in slower execution speed and higher resource consumption than with C++ which compiles to native machine code.


Where does source code come from in java?

Source code comes from the programmer...


What kind of file contain java source code?

'.java' files contain java source code. One can access these files on windows by using 'notepad'.


What does the Java compiler translate Java source code to?

The Java compiler translates Java source code to Java byte code.


Java source code for median filter algorithm?

research is going on to develop a source code for median filtering using java


Differencitate between source code and bytcode in java?

The source code is just the set of statements written in (any included) java language by a programer (in this case our source code is a text file with .java extension). And in other hand a bytecode is the resulting code of compile a .java file, It is not machine code, but it can be interpreted and executed by the jvm.


What does a compiler perform?

A compiler converts high-level source code into native machine. In the case of Java, source code is compiled to Java byte code suitable for interpretation by the Java virtual machine which produces the machine code.


Where does bytecode come from java?

It is created by the Java compiler, based on the source code (the .java file).


How would you convert a folder full of class files to java files with the correct names for re-compiling?

I use JD-GUI to de-compile class files back into their java equivalents. This has saved me once or twice when I lost the source code on a project and I needed to update it.


What is a Javacode?

If someone talks about "Java code," then they're are most likely referring to the source code of a Java program.