Importing the Vector class will simply solve the problem. package SomePackage; import java.util.Vector; public Class SomeClass { Vector vector; } The most common cause of this error message is defining a class within java APIs and not including it with the import keyword. Ex: package SomePackage; public Class SomeClass { Vector vector; } This code will generate Vector cannot be resolved to a type error.
package SomePackage; import java.util.Vector; public Class SomeClass { Vector vector; }
package SomePackage; public Class SomeClass { Vector vector; }