answersLogoWhite

0


Best Answer

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.............

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

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.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

use the javac keyword to compile a Java program.

javac filename.java is the syntax to compile a java file.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

java programs are compliled with the help of javac

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you compile java programming language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are some applications for the JRuby programming language?

There is only one application used for the JRuby programming language software and that is to encode, compile and interpret Java bytecode. JRuby was invented in 2001.


Tips how to avoid compile time errors in java?

The best tip to avoid compile time issues is to follow the coding guidelines and syntactical rules specified in the language. Every programming language has such guidelines mentioned while creating the language. If we follow them, then we will not get compile time errors.


What programming language are java applets written in?

Java applets are written in the Java programming language. Java is considered to be one of the oldest and most commonly used programming languages in the world.


What in computing is java?

Java is a computer programming language. Java programs can be interpreted (the computer compiles and runs the program as the code is executed) or it can be pre-compiled into bytecode (the computer doesn't have to compile it as soon as it is run, so time is saved.)


How can you compile or run the java programming?

To compile:javac MyProgram.javaTo run:java MyProgramHowever, you can also do everything (both compile and run) from within an IDE.


Which type of language is java?

Java is truly object oriented programming language


Is the best institute for learn java programming in Pakistan?

The Java programming language is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. Then you learn java programming language in Pakistan get the best java programming classes at the lowest cost.


Is java a database?

No, its a programming language.


Is java DBMS?

no, Java is not dbms.. Java is a programming language Dbms is database


What is jython?

Jython is a version of the Python programming language that is integrated with the Java programming language, allowing you to mix Java and Python code and run both on the Java Virtual Machine.


Why java is 100 percent programming language?

There are no 'partial' programming languages.


Is java a hardware platform?

No. It is a programming language