answersLogoWhite

0

You must have the Java Run-time Environment installed on your computer.

Steps:

1. Open Command Prompt

2. Enter the command: javac class.java

3. Enter the command: java <classfilename> (without the .java or .class extension)

The javac command will compile your java source file and create a class file. The java command will execute or run your java class file.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Is java needed to run PC?

No, Java is needed only if you run programs that are written in Java. The majority of computer users today could disable Java and never know the difference.


Is java software needed to run a computer?

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


How many versions of java runtime environment are needed on your computer?

You only need one version of the JRE to run a Java application.


Is Java script needed for Poptropica?

No, Java script is not needed to play poptropica.


What's the difference between JVM and JDK?

There are two main things you can download for Java: the Java Runtime Environment (JRE) and the Java Development Kit (JDK). The JRE is used by those who wish only to run Java programs. In order to do this it uses the Java Virtual Machine (JVM) to run Java bytecode. The JDK is used by developers and contains both the JRE and the programs and libraries needed to compile and run Java programs. Simple summary: The JDK contains the JRE which contains the JVM.


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.


Do you have to have java on your coumpter to run everything on your coumpter?

No; lots of programs run without Java. You only need the Java runtime to run programs specifically designed with Java technology.


What is needed to implement Java on a computer?

By implementation if you mean running java applications and applets. then go to java.com and download and install java run time environment in your computer. you will be able to run java applets in your browser and java applications in your computer. if some thing else ? let me know by giving extra details.


What are tools or software that are needed to editcompile and run to java?

To edit Java source code you can use any text editor. In order to compile a Java source file to Java bytecode you need the Java Development Kit (JDK). The program which does this is called "javac" and can produce .class files which can be used by the Java Runtime Environment (JRE) to execute.


Which brands of laptops can run JAVA?

Any computer (desktop or laptop) can run Java.


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.


How do you run minecraft.jar in puppy Linux?

You need to have Java installed, then just run "java -jar minecraft.jar".

Trending Questions
Palindrome program by using array C? Will a motor shut down if the run capacitor fails? The basic types of rates are class exception and? Where in world do we find biomass energy source being used? Isn't purple pee a sighn of a rare genetic disease called Acute Intermittent Porferiea? How would you write a user defined function to compare two strings without using the library function? Why a resiatance reading of 200 ohms across the terminals of a woofer speaker is? What will happen if you connect 220v bulb in parallel to 100k ohm resistances with supply of 440 v? Why does the author use the metaphor Now he's a statue and stands in one spot A. to show that Flip is anxious to leave his job and go home B. to show that Flip still plays on a local basketball team C? Does every different conducting substance have a unique resistivity? What name is given to the strong heavy grating that slides up and down to block a castle gateway? Why does meiosis result in more genetic variation than mitosis? What part of the computer is responsible for executing instructions tp process information? What are three types of wrenches? How is the Deemed Generation calculated in the thermal power Plant? What are the Small squares callled at each corner and middle location of a selection rectangle? How many different motor options in a 1995 corvette? How do you use a return stack heater? Why condenser is used in boiler or steam power plant? What is the difference between while loop and for loop in c computer language?