File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Command Line Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Command Line" Watch "Command Line" New topic
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
OCPWCD [84%] March 26th, 2013
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Command Line
 
Similar Threads
String Searching in huge Text file
JNI system call on Unix
How to Get processes list from Remote Machine
Debugging java on unix
linux cron task to invoke java class