Eclipse sharing a group of classes between projects
- From: Ian Wilson <scobloke2@xxxxxxxxxxxxx>
- Date: Tue, 12 Sep 2006 17:19:32 +0100
I have a small Java application with a few classes. I used Eclipse and created a new "project" and put the classes in the default package.
Then I decided a couple of the classes would be useful in other of my applications so I created a new "project" and created a package "org.foo.bar.utils". I copied the reusable classes here and deleted them from the original project.
I tried various settings in "Project" "Properties" but cant get the application to compile and run now.
In "Project", "Properties", "Libraries" I used the "Add Class Folder" and ticked the box for "org.foo.bar.utils". The app comiles now but at runtime I get "NoClassDefFoundError".
I've tried a few other things such as adding "org.foo.bar.utils" as a library and inserting an import statement but am not getting any joy.
Is there an idiots guide to this?
.
- Follow-Ups:
- Re: Eclipse sharing a group of classes between projects
- From: Thea
- Re: Eclipse sharing a group of classes between projects
- From: Oliver Wong
- Re: Eclipse sharing a group of classes between projects
- Prev by Date: Re: Invert image colours
- Next by Date: Re: Eclipse sharing a group of classes between projects
- Previous by thread: Re: Invert image colours
- Next by thread: Re: Eclipse sharing a group of classes between projects
- Index(es):
Relevant Pages
|