How do i programmatically add an external folder to Project Classpath? [message #198441] |
Sat, 12 March 2005 16:14 |
Eclipse User |
|
|
|
2 questions:
1. My Java application needs to access non-java resources such as XML
files from external locations (outside the workspace). My app has a dialog
that lets the user select an xml file from the local file system and parse
it. Once this is done, this file has to be added to the Project Classpath
so that my app can find it in future for other purposes using just the
name of the file.
Say the file is C:\configs\test.xml.
How can i add the folder C:\configs to my Classpath programmatically?
2. How can i find a resource programmatically using just its name, say
test.xml, assuming the resource exists in the Classpath?
thanks in advance
Sapna George
|
|
|
Powered by
FUDForum. Page generated in 0.05610 seconds