Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command Line

 
Vincent Edomwonyi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 446
1
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Vincent Edomwonyi
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 394
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic