How Can We Run Java Program By Command Prompt? Give Answer In Steps Please?

5

5 Answers

Ram Kumar Profile
Ram Kumar answered
You may run program with 2 types..
1: After installing the java, save your coding in the bin file which is in the c:
After that go to command prompt
then go to the bin location then compile the coding by using the keyword javac and then run.
Anonymous Profile
Anonymous answered
Open your command prompt
give the path as in your system as c:javabinjdk1.6
then write javac filename.java
then java filename
nick dome Profile
nick dome answered
Shop Louis Vuitton Outet Online for discount louis vuitton speedy bags, cheap louis vuitton wallet and louis vuitton luggage  wholesale! Real cheap louis vuitton outlet online! Www.louisvuittonbags-outlet.org
Yusuf Lokhanwala Profile
How to set path..??
Gopinath Sundaram Profile
Here are the steps :
*  Open the command prompt
* Set Path as 'C:\Program FilesJavabin"
*use the command -> java  here filename is the absolute path of the Java file you want to compile
*then to run use javac

Answer Question

Anonymous