| Author |
Command Line
|
Vincent Edomwonyi
Greenhorn
Joined: Jan 19, 2011
Posts: 8
|
|
Hi all,
Please, can someone tell me what command line is? Is it any different from command prompt? I am a java greenhorn, i need to be able to compile and run code (confirmation) as i read my headfirst java.
I need help on how to get it.
|
 |
Prasad Kharkar
Ranch Hand
Joined: Mar 07, 2010
Posts: 438
|
|
Vincent Edomwonyi wrote:Hi all,
i need to be able to compile and run code (confirmation) as i read my headfirst java.
I need help on how to get it.
does that mean that you have not tried to compile and execute the program yet?
and yes,
to compile the java program
use : javac filename.java
now after successful compilation we get a class file called filename.class
to execute the program
use: java filename
hope this helps
|
SCJP 6 [86%] June 30th, 2010
If you find any post useful, click the "plus one" sign on the right
|
 |
Vincent Edomwonyi
Greenhorn
Joined: Jan 19, 2011
Posts: 8
|
|
|
To compile a programe you use "% javac filename.java", yes, my question is where exactly should I write this (% javac filename.java)? Is it at the command prompt?
|
 |
Ikpefua Jacob-Obinyan
Ranch Hand
Joined: Aug 31, 2010
Posts: 394
|
|
Hey Vincent, I simply want to know if you were able to run your programs from the command Line(Also known as Command Prompt), I guess I got that right.
If you are still having any problems, I am offering to help you, you can add me on skype id: jacobxzx, I will be glad to help.
This is NO adds, I am an scjp/ocp student and my offer to assist will simply keep me in form towards my preparations for the exmas. Thank you.
|
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
|
 |
 |
|
|
subject: Command Line
|
|
|