find jar file [message #172631] |
Mon, 21 March 2005 11:10 |
Eclipse User |
|
|
|
Originally posted by: penzhan8451.yahoo.com.cn
Hi,
In my plugin directory, I have tow jars ,one is mypluin.jar ,another is
support.jar . I want to visit the support.jar from a java file which is
in
myplugin.jar, my code likes below :
....
InputStream is = null ;
is =
ResourcesPlugin.class.getResourceAsStream("support.jar");
jis = new JarInputStream(is);
...........
but the is is null.
would you please tell me how to do it ?
Thanks in advance !
|
|
|
|
Re: find jar file [message #172831 is a reply to message #172812] |
Mon, 21 March 2005 19:17 |
Eclipse User |
|
|
|
Originally posted by: huangjun.cs.umb.edu
Maybe he wants to access the jar file as an image and then extract it or
load it or...?
"Pratik Shah" <ppshah@us.ibm.com> wrote in message
news:d1n89q$3g8$1@news.eclipse.org...
> Not sure what you're trying to do. If the jar is on your classpath, you
> should be able to just load classes from it without having to refer to it
> explicitly. Anyway, this is not gef-related.
>
> "smallfish" <penzhan8451@yahoo.com.cn> wrote in message
> news:590d288fa39dd3a5a91e74b35fad2aff$1@www.eclipse.org...
> >
> >
> > Hi,
> >
> > In my plugin directory, I have tow jars ,one is mypluin.jar ,another
is
> >
> > support.jar . I want to visit the support.jar from a java file which is
> > in
> >
> > myplugin.jar, my code likes below :
> >
> > ...
> > InputStream is = null ;
> > is =
> > ResourcesPlugin.class.getResourceAsStream("support.jar");
> > jis = new JarInputStream(is);
> > ..........
> >
> > but the is is null.
> >
> > would you please tell me how to do it ?
> >
> >
> > Thanks in advance !
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03166 seconds