aspose file tools*
The moose likes Beginning Java and the fly likes Import Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Import Error " Watch "Import Error " New topic
Author

Import Error

Charmaine Gatling
Greenhorn

Joined: Jan 10, 2002
Posts: 11
I keep getting an error regarding an import that I know is there. Besides the location of the files, what else do I need to check when I get an error because of the import?
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Check the classpath as well. What does the error message say?


"I'm not back." - Bill Harding, Twister
Doug Wolfinger
Greenhorn

Joined: Jul 27, 2002
Posts: 18
I was having the same problem in Win98, using jdk1.3. There was a topic regarding this back in August 2000 that doesn't appear to be available any more. http://www.javaranch.com/ubb/Forum33/HTML/000670.html
I have created a folder, "interfaces", with an interface in the folder that creates the package...

Then in the program over in the bin directory, it actually appears to be working now...

I don't remember what problem I was having in 2000, but it's working now.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Doug,
That thread is still available - just not through that hyperlink. A while back, changes were made to the server that have rendered the old-style of thread referencing invalid. If you remember key words/concepts from the conversation, you may have success finding it by using the google search feature found at the bottom of this page. Or, since you already have the old style of reference, just change it to one of the newer forms in use:
http://www.coderanch.com/t/387070/java/java/Help-compiling-packages
or
http://www.coderanch.com/t/387070/java/java/Help-compiling-packages
And it looks like this is the thread where you described your problem in 2000.
[ July 27, 2002: Message edited by: Dirk Schreckmann ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Doug Wolfinger
Greenhorn

Joined: Jul 27, 2002
Posts: 18
Thank you, but that's the topic I started. Jane Griscti posted a reply to me that included a link to a discussion which had been happening for some time before I started my topic. Your suggestion worked and here is the link in question
http://www.coderanch.com/t/387070/java/java/Help-compiling-packages
That lead to this topic.
http://www.coderanch.com/t/194641/java-programmer-SCJP/certification/import-package
[ July 27, 2002: Message edited by: Doug Wolfinger ]
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9046
    
  10
Originally posted by Charmaine Gatling:
I keep getting an error regarding an import that I know is there. Besides the location of the files, what else do I need to check when I get an error because of the import?


Is the class that is importing the import in the default package, or does it have a package statement above the import statements?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
 
subject: Import Error