• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Command Line

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 446
1
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 394
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
This tiny ad is guaranteed to be gluten free.
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic