Forums Register Login

weird problem

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
going into src will do the trick
Water proof donuts! Eat them while reading this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1036 times.
Similar Threads
Error: package com.example.model does not exist
package does not exist problem
Problem in accessing model in diffeerent package(Servlet-HFS)
can't compile a servlet
can't import own model
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 04:36:09.