answersLogoWhite

0

How java program can run in windows7?

Updated: 8/19/2019
User Avatar

Wiki User

13y ago

Best Answer

You must have a java runtime environment (JRE) installed to run a jar file ..

if it is not a jar ( or it is a class ), you should have the java development kit or JDK ..

if the file you are running is a jar file, just double click it.

if the file you are running is a class file ex. "MainProg.class"

then go to the bin directory, and open command prompt and change to that directory.

then java MainProg.class

it should run ..

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How java program can run in windows7?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you run java program without applying main method?

yes we can run java program without using main. we can run program by declaring the variable static..


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 execute a Java program?

You can run a Java application from the command line using "java <name of the class>"


How can you run frame program in java?

Same as that of the applet we need to run this frame...........


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


Difference between a java complier and the Java JIT?

A java compiler takes Java source code and turns it into Java bytecode, which can then be run by the java virtual machine.Using JIT means that the java code will be compiled and executed at the time that you run the program, which will slow down the program because it has to compile the code at the same time that it runs.


Why you same name in class and file in java?

For run the program


Why you start java program by class?

without class non of the folder can run so the java program should start in class we can use the class without object in java


What is the name of the command to run a java program?

javausage: java path\FooBar will execute path\FooBar.class


Why is a Java Download so important?

Java is important because it a program to run certain games or videos.


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 java programs can ensure wora philosophy?

Translating a java program into bytecode makes it much easier to run a program in a wide variety of envirenments becouse only the JVM needs to be implemented for each platform.Once the run time packages exists packages exist for given system, any java program can run on it.