Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems with packages and import statements
 
Similar Threads
Log4J created two log files but should have only done one
Customize Logger Problem
where did log file go?
Where is the log message written?
Internationalisation of messages with Apache Commons Logging