File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Importing a package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Importing a package" Watch "Importing a package" New topic

Importing a package

giorgi moniava

Joined: Apr 16, 2007
Posts: 2
hey all,

I hava a simple problem, but would appreciate if you could reply as soon as possible. particularly I am trying to compile code including following line:

import org.bouncycastle.crypto.digests.SHA1Digest;

But I get an error, saying: " The import import org.bouncycastle.crypto.digests.SHA1Digest; cant be resolved

What can I have done wrong ?

marc weber

Joined: Aug 31, 2004
Posts: 11343

Is SHA1Digest.class under the correct directory hierarchy (org > bouncycastle > crypto > digests)?

Which directory are you compiling from? And what classpath are you using?

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
I agree. Here's the link:
subject: Importing a package