my dog learned polymorphism
The moose likes Beginning Java and the fly likes Head First Java question? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Head First Java question?" Watch "Head First Java question?" New topic

Head First Java question?

Murrie Rosendo

Joined: Aug 12, 2011
Posts: 2
I have an odd question that pertains to the book Head First Java by OReilly that revolves around running the code in the book. In that book most or all of the examples that you work on whether it be an example or an exercise at the back of the chapter work off of a java file and a class file. This is where my question comes into the play on how are you going about running or compiling that code through either Xcode or NetBeans to work and show that results? I have read tons of coding books from Java to iPhone development all the way to JavaScript and jQuery tech books but this one has honestly left me puzzled. Please help!
ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
hey they have written code in broken parts just complete them and also compile and run them without eclipse or xcode that book requires all code to be executed without softwares
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46380
Welcome to the Ranch

My, your posts are difficult to read, because you hardly used any punctuation. Both of you. Do you mean, how do you change a .java file into something which has been compiled? That would be a .class file.
The Java™ Tutorials tell you how to do it. So does our "First Program" FAQ.

Remember you have to update your PATH as part of the installation process. If you haven't done this, you will have problems. If anything goes wrong, look at the "common problems" link at the bottom of the Java™ Tutorials page.
ankittt agarwala
Ranch Hand

Joined: Jan 19, 2011
Posts: 42
i was just telling him to execute java programs without eclipse
I agree. Here's the link:
subject: Head First Java question?
It's not a secret anymore!