Runtime problem [message #164456] |
Tue, 08 August 2006 04:21  |
Eclipse User |
|
|
|
Originally posted by: zor.zor.com
Hi,
I'm adding a JAR file to my eclipse application using "add external
jar" . But while it compile the program with no problem, during the
running of the program it can not find the classes that are part of the
JAR.
What am I missing?!
Thanks,
Yoni.
|
|
|
Re: Runtime problem [message #164480 is a reply to message #164456] |
Tue, 08 August 2006 04:53   |
Eclipse User |
|
|
|
Yoni,
> Hi,
>
> I'm adding a JAR file to my eclipse application using "add external
> jar" . But while it compile the program with no problem, during the
> running of the program it can not find the classes that are part of the
> JAR.
> What am I missing?!
>
> Thanks,
> Yoni.
You need to add the JAR file to the runtime class path.
To do that, select "Run..." from the "Run" menu, select the launch
configuration for your Java class, switch to the Classpath page, select
the "User Entries" node, and click the "Add External JARs" button to add
the JAR file to your classpath.
HTH,
Asaf
--
Asaf Yaffe
Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
|
|
|
Re: Runtime problem [message #164496 is a reply to message #164480] |
Tue, 08 August 2006 05:35   |
Eclipse User |
|
|
|
Originally posted by: zor.zor.com
Asaf,
Thank you for the quick answer... However there is no classpath page.
I'm using eclipse 3.2 and I'm building an Eclipse Application. You have
classpath page if you are developing a "Java Bean" or "Java
Application" but not for "Eclipse Application" ... Am I missing
something?!?
Yoni.
Asaf Yaffe wrote:
> Yoni,
>
> > Hi,
> >
> > I'm adding a JAR file to my eclipse application using "add external
> > jar" . But while it compile the program with no problem, during the
> > running of the program it can not find the classes that are part of
> > the JAR.
> > What am I missing?!
> >
> > Thanks,
> > Yoni.
>
> You need to add the JAR file to the runtime class path.
> To do that, select "Run..." from the "Run" menu, select the launch
> configuration for your Java class, switch to the Classpath page,
> select the "User Entries" node, and click the "Add External JARs"
> button to add the JAR file to your classpath.
>
> HTH,
> Asaf
|
|
|
|
|
Re: Runtime problem [message #164950 is a reply to message #164503] |
Thu, 10 August 2006 05:34  |
Eclipse User |
|
|
|
Originally posted by: zor.zor.com
It seems that I had to both add it threw the plugin and put it in the
root of the project.
Thanks
Asaf Yaffe wrote:
> Yoni,
>
> I understand that you are creating an Eclipse plugin. I don't have a
> lot of experience in plugin development, but I think you can specify
> the JAR files used by your plugin in the plugin configuration file
> (plugin.xml): Double click plugin.xml (should be located in the root
> of your plugin project), select the "Runtime" tab in the editor, and
> add the required JAR files in the "classpath" section. You may want
> to add these JAR files to your project (usually in a 'lib' directory)
> so you can add them to the classpath using a path name relative to
> your plugin direcory.
>
> HTH,
> Asaf
|
|
|
Powered by
FUDForum. Page generated in 0.10813 seconds