my dog learned polymorphism
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Importing a package" Watch "Importing a package" New topic

Importing a package

George Bock

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
It's not a secret anymore!