Using JavaFX without "installing" it - java

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.

Related

JavaFX Self-Contained Application Packaging for windows with MySQL

I have a JavaFX 8 application and I am creatin an .exe application bundle to distribute the application to windows users. I am able to create an exe with SQLite as back end following here JavaFX 2 Tutorial - Part 7: Deployment with e(fx)clipse
Now I want to change my whole database to MySQL to increase performance. How can I bind MySQL with deployment package so that MySQL automatically get installed and database created in it. I have googled a lot and still i couldn't find a solution.Even in the above link,author suggested to post the question in SO.
In the interest of completeness, I am using Oracle JDK 1.8.0_45,Inno Setup 5 and Eclipse as my IDE.
Any help would me much appreciated. Thanks....

Detect lowest Java version supported

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').

how to make a setup of my application?

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.

Launching a URL in a Java Swing application

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.

Where can I download the source of "appframework.jar" that comes with NetBeans?

I have just started to try NetBeans. I created a new Java Desktop Application project, and it automatically added the JDesktop "appframework-1.0.3.jar" library. However, whenever I try to view its source, the command fails. I tried searching for it online, but I couldn't find it. So where can I download the source code for the "Swing Application Framework" (appframework.jar and swing-worker.jar)?
http://java.net/projects/appframework/sources/svn/show/trunk/AppFramework
the link and the source is too old and hard to be found,luckly i used 30 min find it in :
https://java.net/projects/appframework/sources/svn/show/trunk/www/downloads?rev=151
you can see the "source","jar","doc" of appframework-1.0.3.jar at the ending.
If you came to this question, because you couldn't find "Swing Application Framework" (appframework.jar) using Tools -> Plugins -> Available Plugins My Answer may help you.
First If you just need appframework.jar please get it from the below link.
If you already click the links in other answers you can Swing Application Framework has migrated from java.net and hard to find where it is migrated
https://mvnrepository.com/artifact/net.java.dev.appframework/appframework/1.03
If you just need Netbeans for Swing Application developments, I suggest you use Netbeans 8.0.2 version. As I experienced Latest version does not have the exact IDE which uses in Video Tutorials, Other versions may not properly work with Swing. As per my experience below version will serve you right when it comes to Java Swing Application developments
https://netbeans.org/downloads/old/8.0.2/

Categories

Resources