• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doing the examples in the Head First SCWCD book

 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm trying to study for the SCWCD using the K&B head first book. normally i would do examples using some kind of IDE or something,but the book advises against doing that.
Instead it says just use tomcat and the jdk. it shows how to organize the files but i'm not sure where i'm supposed to put those files and how to run the programs. Am i supposed to just write the code in a text file or something?
and if so how do i compile it?
do any jobs still do it this way?
i want to learn this way though because it will force me to learn the little details,etc.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am i supposed to just write the code in a text file or something?

Any text editor will do.

and if so how do i compile it?

On the command line, using javac (how did you do to study SCJP ?) Compiling servlets is just a matter of putting a jar file in the classpath. Refer to this FAQ.

do any jobs still do it this way?

Most projects use automated means to compile and deploy everything, like batch files, Ant or Maven. For the moment, you don't need to bother about that.

i want to learn this way though because it will force me to learn the little details,etc.

Don't worry. You are supposed to have learned most of these details in SCJP
 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris I passed the SCJP exam , but I did all the practice problems in Eclipse.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but I did all the practice problems in Eclipse.

In fact, it is more recommended to use text editors for SCJP, and then use IDE like Eclipse for other certifications. But it's not too late Try Sun's tutorial, it won't take you long to finish it, and you'll then be able to compile your source files. If you are really annoyed by all this, continue to use Eclipse, but I think that you really need to know what the tutorial is focusing on.
 
Jay Dilla
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Christophe Verre:

In fact, it is more recommended to use text editors for SCJP, and then use IDE like Eclipse for other certifications. But it's not too late Try Sun's tutorial, it won't take you long to finish it, and you'll then be able to compile your source files. If you are really annoyed by all this, continue to use Eclipse, but I think that you really need to know what the tutorial is focusing on.


in order to use the tomcat without an IDE i have to change the classpath. will that ruin it for the classpath settings for my IDEs?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, your IDEs will be unaffected as long as you don't touch the CLASSPATH environment variable directly. Even if you did, there would be few chances to mess it up.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic