Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class Path / cannot be resolved or is not a type, Problem 1

Status
Not open for further replies.

k4ghg

Technical User
Dec 25, 2001
191
US
am new to Java and Eclipse. I am having problems setting my class path and would appreciate any help that someone could provide. I have a zipped file with Java Classes and folders with images that I would like to use. I tried first to unzip the file and use Eclipse's preference options > name/folder/apply, but it did not work.

I think that the code with the import come.help.test.*; only saw part of the classes but not the entire achieve. I would get errors like:

Imp cannot be resolved or is not a type
Imp cannot be resolved or is not a type
DK cannot be resolved or is not a type

Its interesting to note that there were no errors associated with the import statement.

I went back and tried to preference options > file test.zip. That too failed. I tried Eclipse's help and searched for class path, but the example was for an older version of Eclipse.

Any help/suggestions of ideas would be appreciated.

Thanks Ronnie
 
Goto the project classpath (right click on project, properties, classpath) and add your zip/jar as an external jar. This will make the classes accessible to your code without worrying about importing, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top