aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "problems with packages and import statements" Watch "problems with packages and import statements" New topic
Author

problems with packages and import statements

Aigini Navaneethan
Greenhorn

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
Bartender

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
 
 
subject: problems with packages and import statements