aspose file tools
The moose likes Beginning Java and the fly likes Beginning with Java with book Head First Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Beginning with Java with book Head First Java" Watch "Beginning with Java with book Head First Java" New topic
Author

Beginning with Java with book Head First Java

Frank Thuring
Greenhorn

Joined: Aug 10, 2010
Posts: 28
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

Joined: Feb 23, 2007
Posts: 1561
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

Joined: Apr 10, 2010
Posts: 308
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.

Bye,
Nicola
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32654
    
    4
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.
     
    I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
     
    subject: Beginning with Java with book Head First Java
     
    Similar Threads
    PATH enviornment for javac
    Setting up Java
    Command Prompt error- Can't run through compiler
    Need help getting started with Head First Java
    Problem with compiling flag