Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How do i programmatically add an external folder to Project Classpath?
How do i programmatically add an external folder to Project Classpath? [message #198441] Sat, 12 March 2005 16:14
Eclipse UserFriend
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
Previous Topic:Launching Ant-view builds with keyboard shotcut
Next Topic:Classpath and ClassLoader
Goto Forum:
  


Current Time: Thu Jul 17 23:43:27 EDT 2025

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

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

Back to the top