Skip to main content



      Home
Home » Newcomers » Newcomers » importing java-libraries into project, folder and classpath problems
importing java-libraries into project, folder and classpath problems [message #147489] Sun, 09 April 2006 16:32 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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/
Previous Topic:Running Eclipse test suite
Next Topic:Font size in left hand pane of help system
Goto Forum:
  


Current Time: Wed Apr 16 13:32:54 EDT 2025

Powered by FUDForum. Page generated in 0.08297 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top