Distribute your Swing application via Java Web Start!
You have produced a pleasant desktop software and have been breaking your head to generate an executable to distribute for different platforms! Right here comes Java World wide web Begin for your rescue, distribute your Swing software by means of internet, no installers, no tailor made code for desktop shortcuts, no tweaks for vehicle-updates! Let me explain the process action by action.
Action one: Jar your classes and resources applying your favorite build tool.
Say your jar file is myswingapp.jar, rename it to myswingapp__V1..jar, ie, include ‘__V’ and an first edition say one.. I will explain why this is necessary in the coming part.
Action two: Organize your dependencies as beneath:
Action 3: Generate a jnlp file as beneath and help save it as myswingapp.jnlp
MySwingApp MyOrg A swing software
Action 4: Copy all your jar data files and the jnlp file to mysite.com/downloads/
Action 5: Create your down load web page say down load.html and include the beneath script:
Action six: You are completed! Now you can launch your software by accessing your down load web page, just click on the ‘Launch’ button, the installer will down load your software and put in it with a desktop shortcut as perfectly as a menu merchandise to launch the software. Good, just isn’t it?
Signing jars: If you want your software to operate with whole entry, you will have to indicator all your jar data files.
Updates: An update examine will be carried out in the qualifications and if an update is obtainable, the software will down load it and put in it in the qualifications! You just want to put your most recent jar data files, which is it!
Come to feel totally free to fall your remarks. I will deal with your queries primarily based on time availability!
A system to achieve each programmer’s aspiration. Discover how to generate a straightforward programming language in a couple times with this quick action-by-action information.