learn java
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Exercise 1.1 in Bridgewater Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Exercise 1.1 in Bridgewater" Watch "Exercise 1.1 in Bridgewater" New topic

Exercise 1.1 in Bridgewater

Praveen Durbha

Joined: May 16, 2005
Posts: 16
I am having trouble running the first exercise(Exercise 1.1) in David Bridgewater's book for SCWCD. In Step 3, running this command:

java uk.co.jbridge.httpclient.UserInterface

from the command prompt should open the UI. But it doesn't. For some reason, it's not able to locate the UserInterface.class file.

My CLASSPATH settings are: C:\jakarta-tomcat-5.0.28\bin;C:\j2sdk1.4.2_10\bin

UserInterface.class is located at :

Appreciate your help.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Add C:\jakarta-tomcat-5.0.28\webapps\ex0101\WEB-INF\classes\ to your CLASSPATH.

It seems that you are confusing PATH and CLASSPATH.
bin directories are usually part of the PATH, not CLASSPATH.

[My Blog]
All roads lead to JavaRanch
Praveen Durbha

Joined: May 16, 2005
Posts: 16
Yeah, you are right. I should have known. It works fine now.

I agree. Here's the link: http://aspose.com/file-tools
subject: Exercise 1.1 in Bridgewater