?
Solved

Package organization - Eclipse

Posted on 2010-11-20
4
Medium Priority
?
583 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
sweetfa2 earned 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
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: …
The viewer will learn how to use and create keystrokes 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.
Suggested Courses

719 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