JBuilder: .java files appear twice in Project pane

Dear JBuilders,

I'm a JBuilder newbie.  In my Project pane, I see my .java files listed twice: once INDENTED beneath <Project Source>, and once DIRECTLY beneath <Project Source>.

When I use Windows Explorer to look in my .../src directory, however, I see only one set of .java files.  The only other place I see .java files is in my .../bak directory.

I tried deleting one .java file within the Project pane, and both Project entries (and the file itself) disappeared.

Am I doing something wrong?  Or is this just a JBuilder quirk?

Thanks,
BrianMc1958

BrianMc1958Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mkandreCommented:
It is most like likely that one is the filename and one is the class name.

since the public classes go in files of the same name it might give the impression of a repitition. As long as it doesn't affect the project compiling and execution, It's assumed to be normal behaviour of the IDE

mkandre
0
bloodredsunCommented:
You may have specified the src folder of your project incorrectly. Make sure that you have specified the /src directory correctly (somehting like right-click the project/project properties/java build path/source files location) and that all the files are in packages.
0
TimYatesCommented:
You have added them to the project...

this isn't necessary

just select all of the java files below the "Project SOurce" and packages (the flat list), and click "Remove From project"

0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

TimYatesCommented:
You only need to add files that are not on the source path to the project (or files that JBuilder skips like xml files, and properties files)

:-)
0
TimYatesCommented:
Basically, the top bit is showing you all java files on your source path (in their package structure), and the flat list is all of the java files you have added to your project...
0
BrianMc1958Author Commented:
Dear Folks,

Thanks.  Maybe the root of my problem is that I have not yet implemented packages for this project. (Again, I'm a newbie.  I was going to package later, as I'm not sure if I want one or two.  Is that a rookie mistake?)

To Tim Yates: mkandre had just recommended to me to add my .java files to the project because nothing was showing up in my "classes" pane.  Do you have a solution for that?

Sorry to be taking up all your time with such basic questions!

Thanks,
BrianMc1958
0
TimYatesCommented:
Errr...  dunno...

Stuff that isn't in a package should appear under the "Project Source" folder...

Don't know about the classes pane thingy...  is this after you've compiled?

I use JBuilder 8...so I don't have a "classes" pane :-/
0
mkandreCommented:
I would suggest that you set up your package structure at the outset so as to avoid any problems with the IDE not being able to locate your files or it separating the .class files from the source directory which makes it difficult manage.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TimYatesCommented:
>> or it separating the .class files from the source directory

I always seperate my class files and my java files...

projectdir/src

for src files

projectdir/classes

for class files..

projectdir/doc

for javadocs...
0
mkandreCommented:
i'm not saying its not possible, nor unwise; but bieng a newbie its a good idea to keep the files close by so as to make it easier to manage;
0
BrianMc1958Author Commented:
Thanks, everyone!

--BrianMc1958
0
TimYatesCommented:
:-(

Good luck anyway...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.