importing java-libraries into project, folder and classpath problems [message #147489] |
Sun, 09 April 2006 16:32  |
Eclipse User |
|
|
|
Originally posted by: ssundin.start.no
Hi! Newbie question... I have to use several Java-libraries in the
following folder:
/store/share/java/classes/
in this folder are several subfolders containing libraries for IO,
oracle-connection etc. How can I include those folders in my project? I
know they are supposed to be in my classpath, but how do I import them?
I'm probably missing something else as well.
I want to be able to write
import java.foo.bar.*;
import oracle.jdbc.driver.*;
in my project. Is there an easy way to just specify the folder
/store/share/java/classes/
and make eclipse understand that I want to access those libraries?
grateful for any help
|
|
|
Re: importing java-libraries into project, folder and classpath problems [message #147553 is a reply to message #147489] |
Sun, 09 April 2006 23:48  |
Eclipse User |
|
|
|
Originally posted by: hashproduct.verizon.net
On Sun, 2006-04-09 at 20:32 +0000, sundin wrote:
> Is there an easy way to just specify the folder
> /store/share/java/classes/
> and make eclipse understand that I want to access those libraries?
I don't think you can specify just the top-level folder, but it's easy
to specify the individual libraries. Right-click the project and go to
"Properties" -> "Java Build Path" -> "Libraries" tab. Use "Add JARs" or
"Add Class Folder" as appropriate to attach each library.
If you have a really large number of libraries, you could use sed to
turn a directory listing of /store/share/java/classes/ into a bunch of
lines ready for pasting into .classpath in your project.
--
Matt McCutchen
hashproduct@verizon.net
http://hashproduct.metaesthetics.net/
|
|
|
Powered by
FUDForum. Page generated in 0.08297 seconds