• Post Reply Bookmark Topic Watch Topic
  • New Topic

Beginning with Java with book Head First Java  RSS feed

 
Frank Thuring
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please can someone help me.

In the book of Head first Java I must use the javac compiler to run a text document.

Can someone step by step tel me how I can run he code in the textdocument with the compiler. I see in the bin direcory a javac thing but when I click on it I see a black window that closes hisself.
I don't know how to start.

How can I run a program in textpad with the java compiler?
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, but I ask you to please read the FAQ, in particular the one about multiposting the same question in multiple fora. I have deleted your other post.

You can solve your problem here: http://download.oracle.com/javase/tutorial/getStarted/cupojava/index.html
 
Nicola Garofalo
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo Frank,

You can refer to the java tutorial:

if you are running your examples on a windows system:

http://download.oracle.com/javase/tutorial/getStarted/cupojava/win32.html

For Solaris and Linux:

http://download.oracle.com/javase/tutorial/getStarted/cupojava/unix.html

Come back here if you have doubts or questions on those guides.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If on Windows, use something like
  • All Programs
  • Accessories
  • Command Prompt
  • I copied my command prompt with right-drag-copy shortcut here to my desktop to make it easier to find.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!