Spring
Spring

Reputation: 11835

Error compiling class from commandline

I try to compile Select.java servlet from Mac terminal with the following command;

MyComputer-iMac:src name$ javac -Xlint:unchecked  
-classpath /Users/name/Development/apache-tomcat-6.0.35/lib
/servlet-api.jar:classes:.com/web/Select.java

and I get this error;

com/web/Select.java:18: cannot find symbol
symbol  : class List
location: class com.web.Select
List result=be.getBrands(color);
^

I have imported java.io in my Select class.

Upvotes: 0

Views: 60

Answers (1)

Adel Boutros
Adel Boutros

Reputation: 10285

Who said list was java.io? Lists are usually java.util.List

Upvotes: 5

Related Questions