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 problems with packages and import statements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "problems with packages and import statements" Watch "problems with packages and import statements" New topic

problems with packages and import statements

Aigini Navaneethan

Joined: Jul 02, 2007
Posts: 4
Below is an excerpt of code from a Java class named 'File Component Log'. The parts of the code that are in italics means it has error in it. My question is why do these errors pop up and how do I correct them?

[ July 31, 2007: Message edited by: Aigini Navaneethan ]
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Not an advanced question. Moving...

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
You didn't tell us what errors you get, but guessing from the topic, I'd bet you're getting some kind of class not found. If your import statements get these errors, you may have left the jar where the classes live out of your classpath. Are you working from the command line or an IDE?

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: problems with packages and import statements
It's not a secret anymore!