Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Library Loading
Library Loading [message #436798] Mon, 24 May 2004 15:37 Go to next message
Eclipse UserFriend
Originally posted by: mhuenken.cerner.com

Hi,

in the Library class there is a loadLibrary method that is implicitely
called by SWT classes like SWT_AWT.

Now my problem is that I don't want to load the required libraries from
the system path but from a specific absolute path that I define. I'm
loading the libraries using System.load("absolutePathname") before I'm
doing anything SWT related, but SWT still tries to load the same libraries
(using System.loadLibrary) because it fails to acknowlege the fact that
this libraries were already loaded. And since it doesn't find the
libraries in the path it subsequently fails to execute.

Is there a way (e.g. a flag) that can be explicitely set and which
prevents the libraries being loaded again?

In the SWT_AWT class for instance there is a (private) loaded flag.
Something like that (only public) would be very helpful for my needs.

Come to think of it this may be something for the developer's list. Any
comments?

Thanks,
Mark
Re: Library Loading [message #436940 is a reply to message #436798] Wed, 26 May 2004 13:32 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Why is the current scheme failing you? Not quite sure what you are doing.

"markh" <mhuenken@cerner.com> wrote in message
news:c8t4qv$o8u$1@eclipse.org...
> Hi,
>
> in the Library class there is a loadLibrary method that is implicitely
> called by SWT classes like SWT_AWT.
>
> Now my problem is that I don't want to load the required libraries from
> the system path but from a specific absolute path that I define. I'm
> loading the libraries using System.load("absolutePathname") before I'm
> doing anything SWT related, but SWT still tries to load the same libraries
> (using System.loadLibrary) because it fails to acknowlege the fact that
> this libraries were already loaded. And since it doesn't find the
> libraries in the path it subsequently fails to execute.
>
> Is there a way (e.g. a flag) that can be explicitely set and which
> prevents the libraries being loaded again?
>
> In the SWT_AWT class for instance there is a (private) loaded flag.
> Something like that (only public) would be very helpful for my needs.
>
> Come to think of it this may be something for the developer's list. Any
> comments?
>
> Thanks,
> Mark
>
Previous Topic:Call dispose on application exit?
Next Topic:Flood fill
Goto Forum:
  


Current Time: Fri Apr 26 20:29:11 GMT 2024

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

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

Back to the top