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


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

Re: loading dll within a jar

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: loading dll within a jar
Date 2011-10-04 02:33 -0700
Organization Canadian Mind Products
Message-ID <nfkl87t2nkv4regjeck6fko9bnp5u7jk4a@4ax.com> (permalink)
References <j6d70q$24c$1@online.de> <201110032353253223-angrybaldguy@gmailcom>

Show all headers | View raw


On Mon, 3 Oct 2011 23:53:25 -0400, Owen Jacobson
<angrybaldguy@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>Short answer, no, you can't get there from here. Unpack your .DLL 
>somewhere (java.io.tmpdir, for example) and load it from there. The 
>Java Web Start protocol includes support for native libraries 
>distributed inside JAR files, if you don't want to write the 
>unpack-and-load glue yourself and if your app is appropriate for web 
>start.

Doing this with applets is a bear.  A long time ago I went nearly nuts
trying to do it under Netscape and brethren and Java 1.1. The problem
was Java did not notice the DLL unless it were present when Java was
first loaded. You have to find a place to put the DLL on the library
path. You need permission to put it there.

It is easier to let Java Web Start handle this for you.  If you use an
installer, it should have facilities to install the DLL for you.  See
http://mindprod.com/jgloss/installer.html
-- 
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

loading dll within a jar Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-03 22:47 +0200
  Re: loading dll within a jar Owen Jacobson <angrybaldguy@gmail.com> - 2011-10-03 23:53 -0400
    Re: loading dll within a jar Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-04 11:19 +0200
    Re: loading dll within a jar Roedy Green <see_website@mindprod.com.invalid> - 2011-10-04 02:33 -0700
      Re: loading dll within a jar Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-04 14:19 +0200
  Re: loading dll within a jar Roedy Green <see_website@mindprod.com.invalid> - 2011-10-03 22:28 -0700
  Re: loading dll within a jar Roedy Green <see_website@mindprod.com.invalid> - 2011-10-15 14:20 -0700
  Re: loading dll within a jar Arne Vajhøj <arne@vajhoej.dk> - 2011-10-16 22:38 -0400

csiph-web