Hello... here is the specific commands and the corresponding programs that am trying to run
Model:
package com.example.model;
import java.util.*;
public class BeerExpert {
public List getBrands(
String color){
List brands = new ArrayList();
if(color.equals("amber")){
brands.add("Jack Amber");
brands.add("Red Moose");
}
else{
brands.add("Jail Pale Ale");
brands.add("Gout Stout");
}
return (brands);
}
}
The corresponding command is:
C:\Users\Praveen\workspace\beerV1>javac -d classes src/com/example/model/BeerExp
ert.java
This command seems to compile without any errors. But I don't see a class file being created.
The modified servlet program is being compiled with the following command:
C:\Users\Praveen\workspace\beerV1>javac -classpath "C:\Program Files\Apache Soft
ware Foundation\Tomcat 5.0\common\lib\servlet-api.jar" -d classes src\com\exampl
e\web\BeerSelect.java
The corresponding errors am getting is:
src\com\example\web\BeerSelect.java:3: package com.example.model does not exist
import com.example.model.*;
^
src\com\example\web\BeerSelect.java:16: cannot resolve symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
^
src\com\example\web\BeerSelect.java:16: cannot resolve symbol
symbol : class BeerExpert
location: class com.example.web.BeerSelect
BeerExpert be = new BeerExpert();
Am being held up due to this issue.. can someone puhleeezzzzz sort this out?!! thanks guys!!