Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8517
| From | Philipp Kraus <philipp.kraus@flashpixx.de> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: loading dll within a jar |
| Date | 2011-10-04 14:19 +0200 |
| Organization | 1&1 Internet AG |
| Message-ID | <j6etl4$lda$1@online.de> (permalink) |
| References | <j6d70q$24c$1@online.de> <201110032353253223-angrybaldguy@gmailcom> <nfkl87t2nkv4regjeck6fko9bnp5u7jk4a@4ax.com> |
On 2011-10-04 11:33:11 +0200, Roedy Green said: > 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. No it will be a standalone package. > 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 At the moment I use a swtich to load the library, the load will be first from the default system lib path or the user can specify the path Grat hint, thank Phil
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
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