0

Dear Friends,

Please help me in getting out of the below error. I have made attachment of source file, kindly try to execute the program experience the error and guide me.

D:\Tomcat 6.0\webapps\Beer-v1\WEB-INF\classes\com\example\web>javac -classpath "
D:\Tomcat 6.0\lib\servlet-api.jar" BeerSelect1.java
BeerSelect1.java:3: package com.example.model does not exist
import com.example.model.*;
^
BeerSelect1.java:15: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect1
BeerExpert be = new BeerExpert();
^
BeerSelect1.java:15: cannot find symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect1
BeerExpert be = new BeerExpert();
^
3 errors

thanks,
Fardeen

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by fardeenmc
0

learn to read and understand compiler errors.
It's some of the most basic skills you're required to have as a programmer, and these couldn't be much more clear.

0

Actually, in the above program, am just trying to import "model" package(package name declared in Public class BeerExpert). As you might have seen in the attachment, i have made directories, same way coded in program also. but still i don't know where the error is occuring am not able to find it. please anybody help me in this, am struggling here.

thanks,
Fardeen

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.