Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

weird problem

 
Fran Kindred
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Romy Huang
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
going into src will do the trick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic