I've created a standalone java application using Netbeans. The application works in ubuntu 10.04 environment. Now I want to create a setup for my application so that I can distribute it to others. Also the path variables need to be changed depending upon the system on which i is installed. Can anyone suggest me how do I do so?
Hello you can make an installer for your application.
In the link below you will find a nice help about izpack installer.
http://www.imrantariq.com/blog/?p=89
Link below contains a detailed pdf to make installer with izpack.
http://www.imrantariq.com/blog/?attachment_id=112
cheers
Imran tariq
Try Flexera's Install Anywhere. It will suite your requirement. It offers lots of stuff customizing the installation process, customizing the UI, etc; Install Anywhere
I suggest you to use izpack which multiplatform and is free (at least as beer).
You can package your app as a JAR if it's a Java app that runs from main, a WAR if it's a web app deployed on a servlet/JSP engine, or an EAR if it's an EJB app that runs on a Java EE app server.
All these presume that your client has a JRE, servlet/JSP engine, or Java EE app server to run the app.
You may use the osxappbundle-maven-plugin for Mac support. You don't need a mac to use it.
http://mojo.codehaus.org/osxappbundle-maven-plugin/
Nobody mentioned NSIS.
Related
I built a java desktop application with Java8 and JavaFX. And everything works fine.
But now I have a new challenge! I googled a lot about how to self-update a java desktop app, but all the results I found were old.
Is there an Open Source library that can manage self-updates for java applications like https://github.com/Squirrel?
If not, what is the best way to build something that will allow my desktop app to self update?
Thank you.
There is a lib called UpdateFX which handles the update process for you. Only drawback is that it only works with single jar apps so if you are using extra libs you have to extend it.
I would like to use JavaFX's web browser in an application I am developing for a client. The problem is my client's server runs on a JDK 6 environment and it has a lot of burocracy and paper to ask him to either update Java SDK or to install JavaFX SDK as the Oracle's guide suggests. So I would like to know if there's a way to import JavaFX JAR's into my project instead of having to install it. Thanks a lot.
I'm working on a little Java app and I'm currently putting the installer together. This checks for perquisites, such as Java being installed, and prompts the user to download anything that's required.
I need to set a requirement for the minimum Java version I support (I'm building with 7). Is there a simple way I can detect what this would be? So if I'm using any classes etc. not available in earlier versions. BTW I'm using IntelliJ.
I'm not sure if the entire 'system tray' complicates things, but..
For deploying Java desktop apps., the best option is usually to install the app. using Java Web Start. JWS works on Windows, OS X & *nix.
The best way to deploy a JWS app. or applet is to use the Deployment Toolkit Script. (That script will do the 'version checking').
Imagine you have a NB Platform application and you would like to use that application via some other app that you've created.
In essence, how can you learn how to start an application if you don't want to use the NB Platform or IDE. You'd somehow need to figure out the stuff that NB Platform does for you when it loads up a module.
Thanks goes to Geertjan for these:
http://netbeans.dzone.com/news/using-intellij-idea-netbeans
http://java.dzone.com/news/ide-agnostic-swing-rcp-develop
How do I launch a URL in the user's default browser, in code from a Java Swing application?
There is this Netbeans library, but the jar dont seem to contain the classes mentioned in the example.
And there seems to be a number of old bespoke examples around.
But are there any killer solutions?
If you're running on JDK 1.6, you java.awt.Desktop.
Desktop.getDesktop().browse(new java.net.URI("www.google.com"));
If running on an earlier JDK, I believe that you can download the JDIC library. Or hack something together by spawning processes.
To expand upon kdgregory's answer, the The Java Desktop API, available from Java 6, provides integration with the desktop with functionality such as launching default web browsers and mail clients.
Launching a web browser can be achieved by using the Desktop.browse method.
For example, launching http://stackoverflow.com can be acheived by the following:
Desktop.getDesktop().browse(new URI("http://stackoverflow.com"));
More information:
Using the Desktop API in Java SE 6
How to Integrate with the Desktop Class
You can look at BrowserLauncher, although the latest version of the JDK are trying to make that obsolete.