how do I set a project's classpath [message #1000586] |
Tue, 15 January 2013 03:58 |
Pat Farrell Messages: 8 Registered: November 2009 Location: Outside Washington DC |
Junior Member |
|
|
I'm new to Eclipse, but not to Java or IDEs in general.
I can't figure out how to create a "lib" directory, parallel to the 'src' and 'bin' directories and have Eclipse look there for the bunches of jar files that I use. I use a bunch, i.e. Google Guava, a JDBC, Log4J, etc. I want to set the whole directory as a classpath place. It seems to work when I add each .jar one at a time, but that is a bit tedious.
It may be that I'm just not seeing it, or perhaps Juno has changed it, as googling in the usual places such as stackoverflow or javaranch isn't helping.
I'm sure this is easy once I know where to look
Running
Version: Juno Service Release 1
Build id: 20121004-1855
on OS-X
Thanks
|
|
|
|
Re: how do I set a project's classpath [message #1000611 is a reply to message #1000586] |
Tue, 15 January 2013 05:12 |
Ed Merks Messages: 33217 Registered: July 2009 |
Senior Member |
|
|
Pat,
It's usually much easier to use PDE to manage the classpath, even if you
aren't building Eclipse plug-ins. Then you could set up a Plug-in
project with all your libraries and any other project that needs them
can just add a dependency to that "library" bundle/plug-in...
On 15/01/2013 4:58 AM, Pat Farrell wrote:
> I'm new to Eclipse, but not to Java or IDEs in general.
>
> I can't figure out how to create a "lib" directory, parallel to the
> 'src' and 'bin' directories and have Eclipse look there for the
> bunches of jar files that I use. I use a bunch, i.e. Google Guava, a
> JDBC, Log4J, etc. I want to set the whole directory as a classpath
> place. It seems to work when I add each .jar one at a time, but that
> is a bit tedious.
>
> It may be that I'm just not seeing it, or perhaps Juno has changed it,
> as googling in the usual places such as stackoverflow or javaranch
> isn't helping.
>
> I'm sure this is easy once I know where to look
>
> Running
> Version: Juno Service Release 1
> Build id: 20121004-1855
> on OS-X
>
> Thanks
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
|
Re: how do I set a project's classpath [message #1001176 is a reply to message #1001012] |
Wed, 16 January 2013 07:42 |
Ed Merks Messages: 33217 Registered: July 2009 |
Senior Member |
|
|
Pat,
I explained pretty much all you need to do. The point isn't to develop
plug-ins but rather to let PDE manage your classpaths. If you'd rather
do that manually, that's fine and your choice.
On 15/01/2013 10:15 PM, Pat Farrell wrote:
> Ed Merks wrote on Tue, 15 January 2013 00:50
>> Google "Eclipse PDE". Using "New->Configure->Convert to Plug-in
>> Project" lets you convert existing Java projects to plug-ins.
>
>
> I googled and found it, but it seems to be about creating and
> developing plugins. All I want to do is have a small number of Java
> projects that have a folder in the classpath. That seems like a huge
> jump to developing plugins.
>
> Am I missing something?
> Thanks
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.06589 seconds