What is the best way to deploy JavaFX application, create JAR and self-contained applications and native installers

A Java application can be packaged in various ways. Please go through Java Packaging Overview to find everything about it. One of the packaging is a self-contained Java application. There are different ways to create these packages : Use the javapackager tools that comes with your JDK JavaFX Ant Tasks JavaFX Maven Plugin for a … Read more

Creating a bundle jar with ant

In my target, I have something like this: <jar destfile=”https://stackoverflow.com/questions/1821803/${store.dir}/temp_final.jar” filesetmanifest=”skip”> <zipgroupfileset dir=”dist” includes=”*.jar”/> <zipgroupfileset dir=”dist/lib” includes=”*.jar” excludes=””/> <manifest> <attribute name=”Main-Class” value=”${main.class}”/> <attribute name=”Class-Path” value=”${mf.classpath}”/> </manifest> </jar> And here is how I build my classpath: <path id=”build.classpath”> <fileset dir=”${basedir}/”> <include name=”${lib.dir}/*.jar”/> </fileset> </path> <pathconvert property=”mf.classpath” pathsep=” “> <path refid=”build.classpath”/> <mapper> <chainedmapper> <flattenmapper/> <globmapper from=”*.jar” to=”lib/*.jar”/> … Read more

How to create a signed APK file using Cordova command line interface?

Step 1: D:\projects\Phonegap\Example> cordova plugin rm org.apache.cordova.console –save add the –save so that it removes the plugin from the config.xml file. Step 2: To generate a release build for Android, we first need to make a small change to the AndroidManifest.xml file found in platforms/android. Edit the file and change the line: <application android:debuggable=”true” android:hardwareAccelerated=”true” … Read more

Create cross platform Java SWT Application

I’ve just run into the same problem. I haven’t tried it yet, but I plan to include versions of swt.jar for all platforms and load the correct one dynamically in the start of the main method. UPDATE: It worked. build.xml includes all jars: <zipfileset dir=”/home/aromanov/workspace/foo/lib” includes=”swt_linux_gtk_x86.jar”/> <zipfileset dir=”/home/aromanov/workspace/foo/lib” includes=”swt_macosx_x86.jar”/> <zipfileset dir=”/home/aromanov/workspace/foo/lib” includes=”swt_win32_x86.jar”/> <zipfileset dir=”/home/aromanov/workspace/foo/lib” includes=”swt_linux_gtk_x64.jar”/> … Read more