Solved

Package organization - Eclipse

Posted on 2010-11-20
4
556 Views
Last Modified: 2013-12-15

Hi (again),

For a project of mine, I have the directory hierarchy given in the image attached (11.jpg)

 directory/package hierarchy
I am trying to get this project working on Eclipse, which (needless to say) I am new to.

The issue is with the java files in the JavaBayesInterface package/directory. They all import the class file JavaBayes.class (stored one directory above them) [i.e. I have src/JavaBayes.java and src/JavaBayesInterface containing files that start with import Javabayes;]. The image below shows a sample file located in JavaBayesInterface, namely ClearDialog.java

 Eclipse Hierarchy/Erros
Now, in eclipse, i started a new project, copied everything to it and created a new package. However, eclipse doesn't see JavaBayes.java and all the import statements give me an error (import JavaBayes cannot be resolved) as the eclipse snapshot shows.

My question is: how can I make these files see JavaBayes?

Thank you very much in advance. Your help is appreciated.

0
Comment
Question by:zibrahim
  • 2
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
sweetfa2 earned 500 total points
ID: 34180744
Try adding the JavaBayes directory as another source directory in your build path for the project.
0
 

Author Comment

by:zibrahim
ID: 34180746
I've already done that :(
0
 
LVL 17

Expert Comment

by:sweetfa2
ID: 34180779
In one of your files try putting 'include default.JavaBayes...'

0
 

Author Comment

by:zibrahim
ID: 34194239
Well, after refreshing many times, the project somehow 'organized itself' and now everything sees everything.....thank you.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now