answersLogoWhite

0

How can you compile or run the java programming?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

To compile:

javac MyProgram.java

To run:

java MyProgram

However, you can also do everything (both compile and run) from within an IDE.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

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

How do you run and compile a java applet program?

One can run and compile a Java applet program by agreeing to the terms and downloading it. It is possible to get a compiler online that will compile and run Java programs.


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


Why it is required to set path and classpath?

to compile and run java program you need to set path and classpath path refers to binary used to compile and run java program i.e. "javac" for compilation and "java" for execution


How do you compile servlet in java using tomcat?

Tomcat is a server. It is used to deploy and run Servlets and not compile them. A Servlet is a java file and has to be compiled just like any other Java Class.


What is Commands for the compiler that are needed to compile and run your program?

javac is the command that is used to compile Java source files.


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


How do you run the frames in java?

first compile java program using "javac" then run frame using "appletviewer". e.x. = appletviewer filename.java


How to make java application?

a Java application is a program written with the very popular porgramming language (Java). the Java programs can run on any operating system (windows,linux,mac...etc) and also it can be run on mobile devices too. in order to the java application to run,it needs to have JRE(Java Runtime Enviroment)installed on the device that it will run on.


Is java software needed to run a computer?

No. Java is not an operating system, it is a programming language.


How do you compile and execute Java program in which we find the highest of any five numbers?

In the same way as you would compile and execute any other Java program. Compile: use the "javac" command. Or use the built-in "compile" command in your favorite IDE. Execute: Use the "java" command. Or use the built-in "run" command in your favorite IDE.


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.


Do Android phones run java apps?

They cannot use Java apps themselves, though the programming language they run- Dalvik- is closely related to Java.