Results 1 to 2 of 2
  1. #1
    doood123 is offline Member
    Join Date
    Dec 2007
    Rep Power

    Default 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:


    and in this directory I have 3 files: and

    and at the top of all three I have the following:


    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( );

    I tried importing 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!

  2. #2
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Bali, Indonesia
    Rep Power

Similar Threads

  1. JXL Package
    By gaya3 in forum Java Servlet
    Replies: 1
    Last Post: 05-23-2008, 10:03 AM
  2. Mark thread RESOLVED.
    By Eranga in forum Suggestions & Feedback
    Replies: 45
    Last Post: 04-02-2008, 11:34 AM
  3. Elements package
    By BlitzA in forum New To Java
    Replies: 0
    Last Post: 12-28-2007, 12:58 AM
  4. Java Package help?
    By Bibendum in forum New To Java
    Replies: 2
    Last Post: 12-12-2007, 05:29 AM
  5. The import java.util.Scanner cannot be resolved
    By Heather in forum Advanced Java
    Replies: 1
    Last Post: 07-08-2007, 02:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts