Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » eclipse plugins - external jars & environment variables - build problem(eclipse plugins - external jars & environment variables - build problem)
eclipse plugins - external jars & environment variables - build problem [message #484336] Sun, 06 September 2009 22:08 Go to next message
Mikael  is currently offline Mikael Friend
Messages: 6
Registered: September 2009
Junior Member
Hi,

I am working on adding new views to my eclipse perspective.

I would like to use external jars, using environment variable to find them.

Now, that works runtime using the external keywork in the MANIFEST file; for example:

Bundle-Classpath: external:$EXTLIBS$/jdom-1.1/build/jdom.jar,
.

but it doesn't work at build time, I tried to change the build page/build.properties file in the plugin.xml editor and that doesn't work.
When I hit the "export deployable plugin" button, it crashes saying that the jdom classes import couldn't be resolved.


So, the temporary workaround I have got is to export the plugin with Eclipse / File / Export and then manually change things such as the manifest file that end up empty.


In short, how to use jars at "plug-in build time" that are not part of any eclipse project and can only be found using an environment variable?

Thanks in advance.

Mikael
Re: eclipse plugins - external jars & environment variables - build problem [message #484709 is a reply to message #484336] Tue, 08 September 2009 20:13 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi Mikael,

I workaround would be to translate the jars into plug-in projects.

See here for an example on how to create a plugin from a jar:
http://www.vogella.de/articles/EclipseJarToPlugin/article.ht ml

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


Mikael wrote:
> Hi,
>
> I am working on adding new views to my eclipse perspective.
>
> I would like to use external jars, using environment variable to find them.
>
> Now, that works runtime using the external keywork in the MANIFEST file;
> for example:
>
> Bundle-Classpath: external:$EXTLIBS$/jdom-1.1/build/jdom.jar,
> .
>
> but it doesn't work at build time, I tried to change the build
> page/build.properties file in the plugin.xml editor and that doesn't work.
> When I hit the "export deployable plugin" button, it crashes saying that
> the jdom classes import couldn't be resolved.
>
>
> So, the temporary workaround I have got is to export the plugin with
> Eclipse / File / Export and then manually change things such as the
> manifest file that end up empty.
>
>
> In short, how to use jars at "plug-in build time" that are not part of
> any eclipse project and can only be found using an environment variable?
>
> Thanks in advance.
>
> Mikael
>
Previous Topic:PDE build error
Next Topic:eclipse plugins - external jars & environment variables - build problem
Goto Forum:
  


Current Time: Thu Apr 25 07:07:00 GMT 2024

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

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

Back to the top