Results 1 to 2 of 2
- 12-18-2007, 02:34 AM #1
Member
- Join Date
- Dec 2007
- Posts
- 2
- Rep Power
- 0
can't use classes in own package ... cannot be resolved into a type
I am fairly new to java and I am having the following problem.
i have a folder structure that goes as follows:
cs/uwm/client/io
and in this directory I have 3 files: ConsoleReader.java ConsoleWriter.java and ConsoleManager.java
and at the top of all three I have the following:
package cs.uwm.client.io;
ConsoleReader and ConsoleWriter are compiling fine
However in ConsoleManager I am using these classes ConsoleReader/Writer and It compile fine for me on a windows JDK in cywin, but when I try this on a Fedore6 system with an Eclipe Java Compiler v_686_R32x, 3.2.2 release I have the following error:
ConsoleWriter cannot be resolved into a type
when I try the following line: ConsoleReader reader = new ConsoleReader( System.in );
I tried importing cs.uwm.client.io but that didnt' work. I couldn't find anything on the forums here if you are trying to use a class defined in your package inside your package the way I am.
Any help would be great!
- 12-18-2007, 10:41 AM #2
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
Similar Threads
-
JXL Package
By gaya3 in forum Java ServletReplies: 1Last Post: 05-23-2008, 09:03 AM -
Mark thread RESOLVED.
By Eranga in forum Suggestions & FeedbackReplies: 45Last Post: 04-02-2008, 10:34 AM -
Elements package
By BlitzA in forum New To JavaReplies: 0Last Post: 12-27-2007, 11:58 PM -
Java Package help?
By Bibendum in forum New To JavaReplies: 2Last Post: 12-12-2007, 04:29 AM -
The import java.util.Scanner cannot be resolved
By Heather in forum Advanced JavaReplies: 1Last Post: 07-08-2007, 01:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks