answersLogoWhite

0

What is needed to run java?

Updated: 8/11/2023
User Avatar

Wiki User

14y ago

Best Answer

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

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

Wiki User

14y ago

A JVM (Java Virtual Machine), which is a compiler for the compiled Java files, has to be installed on the machine where you want to run the Java program.

A JVM (Java Virtual Machine), which is a compiler for the compiled Java files, has to be installed on the machine where you want to run the Java program.

A JVM (Java Virtual Machine), which is a compiler for the compiled Java files, has to be installed on the machine where you want to run the Java program.

A JVM (Java Virtual Machine), which is a compiler for the compiled Java files, has to be installed on the machine where you want to run the Java program.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

I made one a couple years ago, you make the program normally but modify your driver and make it into an applet. Then you need to write an extremely basic HTML program to launch the applet. Sorry I can't remember how, but there are lots of examples on Google

This answer is:
User Avatar

User Avatar

Learn bay

Lvl 8
2y ago

you will need a Java Runtime Environment (JRE) to run java programs. But if you want to learn java and develop your own programs, then you will need a Java Development Kit (JDK). The JDK includes the JRE and the java bytecode compiler to compile your sourcecode. You can download both here.

To learn more about data science please visit- Learnbay.co

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

A JVM (Java Virtual Machine), which is a compiler for the compiled Java files, has to be installed on the machine where you want to run the Java program.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is needed to run java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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".