java - Bundling .dll inside of .jar -


i'm using xfiledialog (https://code.google.com/p/xfiledialog/) instead of jfilechooser, want bundle dll's inside .jar don't have ship them application.

so added them project, i'm not sure how reference them. inside xfiledialog.class found system.loadlibrary("xfiledialog64");

i guess has changed system.load("xfiledialog64").

is correct?

the other issue not able edit .class file inside eclipse. mean have edit .class in source , re-compile it?

since apparently desktop app., 1 strategy launch using java web start. if launched using web start, natives loaded loaded.

here jnlp used load applet demo.

<?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0+" codebase="" href="">     <information>         <title>helloapplet</title>         <vendor>stevpan</vendor> </information>      <resources os="windows" arch="x86">         <nativelib href="win_x86_dll.jar" />     </resources>      <resources os="windows" arch="amd64">         <nativelib href="win_x64_dll.jar" />     </resources>      <resources>         <!-- application resources -->         <j2se version="1.6+"               href="http://java.sun.com/products/autodl/j2se" />         <jar href="hello.jar" main="true" />     </resources>      <applet-desc           name="helloapplet"          main-class="helloapplet"          width="640"          height="480">      </applet-desc>      <update check="background"/> </jnlp>                  

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -