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

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


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


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.


Which brands of laptops can run JAVA?

Any computer (desktop or laptop) can run Java.


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.


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