Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-18-2007, 04:34 AM
Member
 
Join Date: Dec 2007
Posts: 2
doood123 is on a distinguished road
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!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-18-2007, 12:41 PM
Senior Member
 
Join Date: Jun 2007
Location: Bali, ID
Posts: 102
wsaryada is on a distinguished road
Can you post your code?
__________________
Website:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Blog:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JXL Package gaya3 Java Servlet 1 05-23-2008 11:03 AM
Mark thread RESOLVED. Eranga Suggestions & Feedback 45 04-02-2008 12:34 PM
Elements package BlitzA New To Java 0 12-28-2007 01:58 AM
Java Package help? Bibendum New To Java 2 12-12-2007 06:29 AM
The import java.util.Scanner cannot be resolved Heather Advanced Java 1 07-08-2007 03:05 AM


All times are GMT +3. The time now is 03:31 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org