answersLogoWhite

0


Best Answer

The Javac is the java compiler javac.exe is a process associated with Java(TM) 2 Platform Standard Edition 5.0 Update 5 from Sun Microsystems, Inc.. Java Capusal this is a java compiler

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is Javac?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is command to compiler java program?

The command is "javac".


How you check that path is set for java compiler?

Open command window "cmd" from Windows prompt. Type in "javac" in the window. The command should execute giving full usage of javac and its options. If you get an error message saying that "Javac is not a recognized as an internal or external command", than the Path has not been set.


How do you complie package in java?

You use javac <filename> to compile a class or package.


How do you compile java programming language?

Hello Frnd, As u say u want to Compile & Run Java Prog. for This if U have JAVA CREATOR then u can compile directly otherwise........ goto Start >run type "cmd" Press "Enter"after that goto C>java>bin> type for compile the prog. "javac PROG.NAME.java" Press "Enter" if Compile SuccessFully Type "java PROG.NAME" Press "Enter" For It This Is Must u save ur Prog. in the folder "bin" in java............. Hello Frnd, As u say u want to Compile & Run Java Prog. for This if U have JAVA CREATOR then u can compile directly otherwise........ goto Start >run type "cmd" Press "Enter"after that goto C>java>bin> type for compile the prog. "javac PROG.NAME.java" Press "Enter" if Compile SuccessFully Type "java PROG.NAME" Press "Enter" For It This Is Must u save ur Prog. in the folder "bin" in java.............


Why java compiler slow?

Actually, the Java compiler is not considered slow when compared to compiling a similar project in C or C++. The Java compiler itself is actually quite simple. All of the fancy Java optimizations occur during runtime.As someone who used to work on the Sun JDK at Sun itself, I can tell you that the old javac (pre-2010 or so) was rather simplistic. Remember that javac itself is a Java program, so that to run, it must first invoke a JVM, and incurs typical JVM load and initialization time. It was originally designed to work on the 'fork/exec' model so common to UNIX, where it would fork a new instance of javac (and the associated JVM required to run it) for every file that it compiled. Now, creating a new JVM had significant startup time costs (initialization of methods was nontrivial), but javac would run reasonably fast one that happened. However, having to fork several hundred times during a single project compile got expensive, and slow. This was particularly true on Windows, where a 'fork/exec' call is over 10x as slow as on a UNIX or Linux system.So, the 'old' javac, while quite quick to actually compile a single file after it got running, was actually quite slow overall when forced to compile a large number of source code files.A major revamp of the javac compiler was undertaken during 2010 with JDK 7. This revamp significantly reduced the number of times a fork/exec was done, buy reusing existing JVMs to run several (sequential) invocations of the javac language. This significantly improved large project compile times, as it reduced the primary overhead that was slowing things down. There are additional projects being worked on that will turn javac into a single multi-threaded program able to compile multiple files itself in one invocation, thus eliminating the need to spawn multiple JVMs. This will particularly help Windows compiles, as Windows threading is much faster than fork/exec.So, overall, if you are running a JDK with a javac created BEFORE mid-2010, javac will be relatively slow for compiling lots of source files, and worse on Windows. Pretty much all Sun/Oracle JDK 6 versions (even the newest ones) have this "defective" javac. The newer, faster javac is available in JDK 7 - I believe it may not be in JDK7, but is definitely in JDK 7 Update 1 and later. This javac should feel quite responsive for most projects, and only be a bit slow on large Windows compiles (more than 100 source files or so), and, even there, will be a noticeable improvement over the JDK 6 javac program.

Related questions

What is the compiler for java?

javac.


What is command to compiler java program?

The command is "javac".


How do you setup robocode javac compiler for windows when I try to open the compiler.Below message appear Please wait while Robocode sets up a compiler for you.. javac does not exist.?

You dont.


How you check that path is set for java compiler?

Open command window "cmd" from Windows prompt. Type in "javac" in the window. The command should execute giving full usage of javac and its options. If you get an error message saying that "Javac is not a recognized as an internal or external command", than the Path has not been set.


What purpose does the javac tool serve?

A javac is a computer tool that is used to read definitions from text and then process them into bytecode class files. This tool can be used for either small or large source files.


How do you compile a program in jre?

You don't. It's the program "javac" that does the compilation.


How do you compile in java?

You either use the command-line program javac, for example: javac MyClass (assuming your program is called MyClass.java), or - more conveniently - look for the menu command to compile, in your favorite IDE.


Compiling two java files at a time?

for example: javac First.java Second.java


How compiler do compilation?

Use a compiler program, such as bcc, gcc, javac, etc.


How do you complie package in java?

You use javac <filename> to compile a class or package.


What is the command to compile jre6 program?

It is 'Java program' to be precise, and the command is: 'javac sourcefilename.java'


Describe different types of java tools?

javac,rmic,eclipse,jbuilder etc..,