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

Recommended Answers

All 2 Replies

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.