java - Jar to exe with an external library -
i've been trying convert jar exe. programme - jar - uses bluetooth library 'bluecove' jar in directory. programme uses java swing, typically jframe , stuff. programme works when run within netbeans or eclipse. it's time me deploy it, hence need convert exe. i've been unable final executable link 'bluecove'. tried jsmooth , launch4j , both, though finish process , create 'exe', final programme isn't running, because can't find bluecove classes.
any suggestions on how around this? none of these converters have documentation linking libraries. help appreciated.
solution: guys answers! used andrew thompson's suggested method deploy program, worked beautifully. , create jar, preferred have in 1 jar, suggested abdullah shaikh. used fat-jar eclipse plugin that.
it's time me deploy it, hence need convert exe.
those 2 statements not create sense together. cannot deploy swing desktop app. *nix or os x using windows based executable. best alternative deploying java desktop app. typically link on web page using java web start.
from bluecove documentation: installation:
installationbluecove rely upon installed native bluetooth stack comes operating scheme or bluetooth usb device.
installation of binary (already compiled) version of bluecove follows:
download bluecove binary release addbluecove.jar classpath also add together bluecove-gpl.jar classpath if running application on linux this imply following. 2 java web start based jnlp extensions:
an extension bluecove main api (bluecove.jar) back upwards windows , os x, core classes needed linux. 'main' jnlp file have resources section specific linux, in turn references 'linux only' extension jnlp. an extension linux specific api (bluecove-gpl.jar) includes installer element pop license prompt user (if needed, entire extension necessary producing license prompt). here little demo. of extensioninstallerservice show license agreement. ..would require user have net connection when using application, or first time activation requires internet?
the java web start client (the app. launches appropriate jvm , app.) typically check home server updates application jars relevant os. fortunately configurable when , how check done, , whether application can run 'off-line' require, specifying element in jnlp:
class="lang-xml prettyprint-override"><offline-allowed /> the offline-allowed element (part of jnlp element) ensures after initial installation, app. can used off-line.
java swing deployment exe executable-jar
No comments:
Post a Comment