Problem in Eclipse form Sun JDK

Joined
Dec 18, 2007
Messages
1
Reaction score
0
Hello,

All my code compiles fine with Sun's JDK but i need to be able to compile at school which is using a Eclipse compiler.

The problem I am getting is as follows:

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.

I am guessing that this is a problem specific to Eclipse compiler
I am using the Eclipse compiler on a command line.

Any help would be great!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top