• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

properties file in a directory which is not in the project

 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a directory structure where \conf is at the same level as \app. Inside of app is \myApp\src\com.xxx.AllClasses

How do I add the files in \conf to my classpath in Eclipse?

(In IntelliJ it was easy, but I'm required to use Eclipse)
[ March 28, 2006: Message edited by: Marilyn de Queiroz ]
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you just add \conf as a second "source" folder to the project's build path.

It's contents will then be copied automatically to the default output folder when the project is built.

Guy
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On the Project Properties - Java Build Path - Libraries tab, eclipse lets you add stuff to your classpath that is external to any eclipse projects three ways that I see off hand. Each is a done using a button on that libraries tab. You don't give a lot of details so not quite sure what/why you are trying to accomplish.

1. Add External jars ... self-explanatory, browse and add external jars to classpath

2. Add Library ... this one is a little more work

3. Add Variable ...

If you're trying to get a folder/directory on the classpath so some properties or other files can be found then add variable should work.

When you use the add variable button (I'm using v. 3.1, I think this works a little differently in earlier versions) there is a "Configure Variables" option. When you do that it lets you add variables. Give one a name like you're creating an environment variable and browse to the directory/folder. After you've created it, you'll be able to add it to your classpath.
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. I'll try that tomorrow morning.
 
reply
    Bookmark Topic Watch Topic
  • New Topic