Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » -Dosgi.parentClassloader=ext - Error
-Dosgi.parentClassloader=ext - Error [message #435626] Fri, 19 August 2005 09:37 Go to next message
Eclipse UserFriend
Originally posted by: sulf.upb.de

Hello,

i have the following problem. My RCP needs a file from the java "ext"
directory. With the command -Dosgi.parentClassloader=ext my application
finds that what it need. In Windows* my programm runs with that parameter
correct, but under linux comes:
java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3064 in java.library.path

Interesting, because if i do not use the -Dosgi.parentClassloader=ext
Parameter my application starts (but without functionality).

Then i give him all the librarys and linked them with -Djava.library.path=
Re: -Dosgi.parentClassloader=ext - Error [message #435627 is a reply to message #435626] Fri, 19 August 2005 11:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sulf.upb.de

> Then i give him all the librarys and linked them with -Djava.library.path=

hmm my text is missing...

if I give him the librarys I get an SWT error
Re: -Dosgi.parentClassloader=ext - Error [message #435633 is a reply to message #435626] Fri, 19 August 2005 15:16 Go to previous messageGo to next message
John Arthorne is currently offline John ArthorneFriend
Messages: 176
Registered: July 2009
Senior Member
Setting the OSGi parent loader is generally not recommend, because this
alters the classpath of every plugin in your application. If it's only
your plugin that needs the ext directory, you can specify this in your
plugin's MANIFEST.MF with the line:

Eclipse-BuddyPolicy: ext

This is much safer because only your plugin will be affected. See Help >
Help Contents and search for "buddy" for more details.
--

Ulf Schwekendiek wrote:
> Hello,
>
> i have the following problem. My RCP needs a file from the java "ext"
> directory. With the command -Dosgi.parentClassloader=ext my application
> finds that what it need. In Windows* my programm runs with that
> parameter correct, but under linux comes:
> java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3064 in java.library.path
>
> Interesting, because if i do not use the -Dosgi.parentClassloader=ext
> Parameter my application starts (but without functionality).
>
> Then i give him all the librarys and linked them with -Djava.library.path=
Re: -Dosgi.parentClassloader=ext - Error [message #435662 is a reply to message #435633] Mon, 22 August 2005 08:41 Go to previous message
Eclipse UserFriend
Originally posted by: sulf.upb.de

THANKS!!! It works.
Previous Topic:Building RCP Applications
Next Topic:Any tips on using jUnit to test RCP application?
Goto Forum:
  


Current Time: Thu Dec 26 16:48:33 GMT 2024

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

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

Back to the top