Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » find jar file
find jar file [message #172631] Mon, 21 March 2005 11:10 Go to next message
Eclipse UserFriend
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 #172812 is a reply to message #172631] Mon, 21 March 2005 18:25 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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 !
>
Re: find jar file [message #172831 is a reply to message #172812] Mon, 21 March 2005 19:17 Go to previous message
Eclipse UserFriend
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 !
> >
>
>
Previous Topic:Need meta key info
Next Topic:Finally! 0 Unread messages
Goto Forum:
  


Current Time: Thu Mar 28 08:57:11 GMT 2024

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

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

Back to the top