Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #8662

Re: System.load / System.loadLibrary

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: System.load / System.loadLibrary
Date 2011-10-09 07:54 -0700
Organization Canadian Mind Products
Message-ID <a2d397l5u5dotj0f30kfvp711s4reqkj4p@4ax.com> (permalink)
References <j6rtvg$g6t$1@online.de> <ddv2979m7vi0u4186rp3q9c3koepredg0h@4ax.com> <j6s2ui$k9d$1@online.de>

Show all headers | View raw


On Sun, 9 Oct 2011 14:09:54 +0200, Philipp Kraus
<philipp.kraus@flashpixx.de> wrote, quoted or indirectly quoted
someone who said :

>My problem is, that the System.load with a fully qualified filename
>does not load my library and my depend library. If I use System.loadLibrary
>with the OS path (unix LIBRARY_PATH, osx DYLD_LIBRARY_PATH)
>the libs are loaded.
>
>eg: mylib is linked again boost libraries, so I would like to load with 
>System.load
>the boost libs first. I use the System.load command with a fqn path and 
>get the error
>"image not found"

Surely loadLibrary uses load itself, so if it can do it, surely you
can too. It has to be just a matter of feeding it the magic string.

Make sure you feed a fully qualified library name, with extension. Use
native platform punctuation for extra luck.

In Forth it would be trivial to insert so some code to monitor what
strings load was being fed.  I have never figured out how to pull that
off in Java. If you had such a tool, I think you could crack this
problem quite quickly.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
It should not be considered an error when the user starts something
already started or stops something already stopped. This applies
to browsers, services, editors... It is inexcusable to 
punish the user by requiring some elaborate sequence to atone,
e.g. open the task editor, find and kill some processes.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

System.load / System.loadLibrary Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-09 12:45 +0200
  Re: System.load / System.loadLibrary Roedy Green <see_website@mindprod.com.invalid> - 2011-10-09 03:52 -0700
  Re: System.load / System.loadLibrary Roedy Green <see_website@mindprod.com.invalid> - 2011-10-09 04:22 -0700
    Re: System.load / System.loadLibrary Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-09 14:09 +0200
      Re: System.load / System.loadLibrary Roedy Green <see_website@mindprod.com.invalid> - 2011-10-09 07:54 -0700
        Re: System.load / System.loadLibrary markspace <-@.> - 2011-10-09 09:32 -0700
          Re: System.load / System.loadLibrary Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-09 18:41 +0200
            Re: System.load / System.loadLibrary markspace <-@.> - 2011-10-09 10:31 -0700
  Re: System.load / System.loadLibrary "John B. Matthews" <nospam@nospam.invalid> - 2011-10-09 22:26 -0400

csiph-web