Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Loading xml files from jars at the runtime
Loading xml files from jars at the runtime [message #334750] Thu, 26 February 2009 05:24 Go to next message
Sheela is currently offline SheelaFriend
Messages: 52
Registered: July 2009
Member
Hi,

I want to know if there is any mechanism by which i can load a xml file
,which is inside a jar,at the runtime.
Also my requirement is ,i dont know the name of the jars which contain xml
files,as it gets resolved at the runtime and want all the jars in the path
(known external directory)to be picked at runtime.
Is there any way to do this?

-sheela
Re: Loading xml files from jars at the runtime [message #334765 is a reply to message #334750] Thu, 26 February 2009 14:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Typically you'd know what class it was stored relative to and you'd use
java.lang.Class.getResourceAsStream. ClassLoader has similar methods...


Sheela wrote:
> Hi,
>
> I want to know if there is any mechanism by which i can load a xml
> file ,which is inside a jar,at the runtime.
> Also my requirement is ,i dont know the name of the jars which contain
> xml files,as it gets resolved at the runtime and want all the jars in
> the path
> (known external directory)to be picked at runtime.
> Is there any way to do this?
>
> -sheela
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Adding to "Debug As..." sub menu?
Next Topic:[JFace,Databinding]BooleanCellEditor not updating model
Goto Forum:
  


Current Time: Fri Apr 26 15:25:50 GMT 2024

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

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

Back to the top