answersLogoWhite

0

How do you compile java program in different platforms?

Updated: 9/17/2019
User Avatar

Wiki User

8y ago

Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you compile java program in different platforms?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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.


What is the command to compile a java program named Greetingsjava?

The command to compile a Java program is "javac", followed by the class name (file name).


How do you make software from a simple java program?

You compile it.You compile it.You compile it.You compile it.


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


What is the command to compile jre6 program?

It is 'Java program' to be precise, and the command is: 'javac sourcefilename.java'


How do you compile and execute Java program in which we find the highest of any five numbers?

In the same way as you would compile and execute any other Java program. Compile: use the "javac" command. Or use the built-in "compile" command in your favorite IDE. Execute: Use the "java" command. Or use the built-in "run" command in your favorite IDE.


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.


It is not an error not to end a Java file name with the java extension?

If you want to compile a java program the name of that source code must end with extension .java


How do you compile and execute a java program which finds out the highest of any five numbers?

it will be destroyed.


How do you run the frames in java?

first compile java program using "javac" then run frame using "appletviewer". e.x. = appletviewer filename.java


What do you get when you compile a java program?

The java interpreter or JVM (Java Virtual Machine) is not able to execute the java source code for a program. The java source code first needs to be compiled into bytecode that can be processed by JVM. Producing bytecode make the program platform independent as each platform has its own JVM. It is also possible to directly write bytecode, bypassing the need to compile, but that would be tedious job and also not good for security purpose as the compiler checks for various errors in a program.


How do you compile in java?

You either use the command-line program javac, for example: javac MyClass (assuming your program is called MyClass.java), or - more conveniently - look for the menu command to compile, in your favorite IDE.