Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scripts in the Head First book

 
Renato Bello
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

I'm in the first 55 pages of the book Head First, and I do not understand if I test and run the scripts or not, such as the guessing game of numbers. If yes, what should I do to test them? (procedures please). I read something about %javac but I can not imagine how to use it. To facilitate the verification of the script, I'm using a simple editor called jsyntaxpane-0.9.5-b29. It is interesting because it is a highlight over the terms and formats the script correctly, however, can not save the scripts and do not know if this is a feature of the editor or if I'm doing something wrong. I accept any suggestions for similar editors.

Thank you in advance for your help.

Renato
 
Greg Brannon
Bartender
Posts: 563
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you start by working your way though this FAQ on setting up a development environment and running your first Java program. Please come back as you have additional questions or need further guidance.
 
Renato Bello
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greg Brannon wrote:I suggest you start by working your way though this FAQ on setting up a development environment and running your first Java program. Please come back as you have additional questions or need further guidance.



Thank you, Greg. I had already installed the sdk and now, with the instructions of the faq, I registered the path. I have tested it and ran my first app: mooooooo.

Now I can use the same process (compile with javac and run with java -class) to check the scripts of the book Head First Java, right?
 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now that you've done it once, you know that you have the requirements for compiling and running satisfied and that it's possible. That's an important point to establish. You can now create files of source code following the examples in your book, save them, then compile and run them from the command line. You may find there are other subtleties to the process that will occasionally prevent you repeating the success you've had following the step-by-step guidance in the FAQ, but don't get discouraged. It's all part of the learning process of getting your environment set up and understanding how it all works. Come back when you need help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic