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 ..
yes we can run java program without using main. we can run program by declaring the variable static..
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.
You can run a Java application from the command line using "java <name of the class>"
Same as that of the applet we need to run this frame...........
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
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.
For run the program
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
javausage: java path\FooBar will execute path\FooBar.class
Java is important because it a program to run certain games or videos.
first compile java program using "javac" then run frame using "appletviewer". e.x. = appletviewer filename.java
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.