Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSJ Chapter 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFSJ Chapter 1" Watch "HFSJ Chapter 1" New topic

HFSJ Chapter 1

Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
Hi !
I just started studying for SCWCD.

In chapter 1 , pg 30 , we have been asked to created two files.
1. Servlet called ""
2. Deplouyment Document called "Web.xml"

In the fifth step mentioned,
Command line statement is given to compile the java file.

I am kind of getting confused with the statemnt and the class path.
I know it's pretty simple , but I still keep getting muddles with the path.

It woule be great if some one can help me with that..


The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Paul Michael
Ranch Hand

Joined: Jul 02, 2001
Posts: 697
Maybe setting up the project using an IDE would be simpler?

Have you ever tried Netbeans or Eclipse WTP?

Both are free tools that can help you set things up easily.

SCJP 1.2 (89%), SCWCD 1.3 (94%), IBM 486 (90%), SCJA Beta (96%), SCEA (91% / 77%), SCEA 5 P1 (77%), SCBCD 5 (85%)
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

A certified programmer (SCJP) is expected to know what the classpath is, and how to compile files, isn't he ?
Nabila, show us exactly which error you have when you compile the file.

2. Deplouyment Document called "Web.xml"

Be careful that case sensitivity is important. The deployment descriptor must be named "web.xml".

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: HFSJ Chapter 1
It's not a secret anymore!