aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes weird problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "weird problem" Watch "weird problem" New topic
Author

weird problem

Francis Palattao
Ranch Hand

Joined: Sep 22, 2004
Posts: 91
Hi Everyone I"m trying to compile this servlet and I get this error.

C:\project1\beerV1>javac -classpath /"Program Files"/"Apache Software
"/"Tomcat 5.0"/common/lib/servlet-api.jar -d classes src/com/example/w
ect.java

src/com/example/web/BeerSelect.java:6: package com.example.model does not exist
import com.example.model.*;
^
src/com/example/web/BeerSelect.java:20: cannot resolve symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert a = new BeerExpert();
^
src/com/example/web/BeerSelect.java:20: cannot resolve symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert a = new BeerExpert();
^
3 errors

my package structure
C:\project1\beerV1\src\com\example\model\BeerExpert.java
C:\project1\beerV1\src\com\example\web\BeerSelect.java

code in BeerSelect which I'm trying to compile


My model code



I cannot find a problem any ideas?


SCJP 1.4 <br />SCWCD 1.4 (preparing)<br />SCBCD 1.3 (coming soon)
Romy Huang
Ranch Hand

Joined: Sep 30, 2003
Posts: 35
going into src will do the trick
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: weird problem