I have developed a Swing Application. For Back end I have used MySQL and I have developed this application using JDK 1.8 version.
I want to create .exe file of my Java project along with MySQL installer and JDK installer
How can I achieve this?
You can export a .jar file (every IDE has one option to do this), what you make your project open just as one .exe if the pc has a JRE installed.
For the Integrated installer, you will have to use a program to integrate the installer of mysql, JDK/JRE, and your .jar file.
I do not know such program but I'm sure that it exists. Surely someone you recommend one to you.
Related
we have developed GUI tool using Java SE 11 , packaged using Maven. Recommend user to download and set Java in system path to launch the tool. Batch file for windows and .command file for Mac and Linux. Do we need to get notarize approval from apple to use it in Mac OS. Please advice
Thanks
You don't need Notarization for the script files. For your GUI Tool it highly depends on your projects dependencies. If your project only use common java packages, then everything should be fine. But there are libaries which require notarization. I personally had this issue with the net.java.dev.jna dependency. My experience is based on a jar bundled within an application. I am not sure if it is the same for a jar excuted from a script only. I recommend to just build your app and try to run it on a catalina machine.
I have a JavaFX project and I'm trying to get an executable exe file from it. I use launch4j and Inno setup wizard technologies for it. My exe file works only in computers which have java in them, but doesn't work in computers that don't have java installed.
I want to create exe file so it includes JRE, so it works in all computers.
I am showing how I do it in this video
Please help me understand what I'm doing wrong. Thank you.
In java8 you can use "Javapackager". You don't need launch4j or innosetup.
Additionnaly From version java 13 (available in early-access) there is a tool named "jPackage" with which you can create an msi, exe, deb or rpm depending on your OS and options. But there will be a little difficulty, because javaFX is no more packaged in the jdk, and you need a module declaration to make work the tools chain (jlink then jpackage)
It's a lot of work to upgrade your project from 8 to 13, but it could be usefull for later consultation of your question:
see https://openjdk.java.net/jeps/343
I make a java application I want to make the setup file save in the USB. Firstly the installation process will check is JDK or JRE is installed or not and then proceed further installations.
Is there any tool or anything way please guide me.
You can create a standalone installer with Self-Contained Application Packaging.
According to the documentation you can create packaged application in one or more of the following deployment modes:
As a standalone application, using the system
As a self-contained application, using a private copy of JRE
As a Java Web Start application, using the system JRE
Embedded in a web page, using the system JRE
OK, I’m still a little overwhelmed by all the choices for deploying an application. My case is really simple. I have a Java program that’s now working in NetBeans on Win7. I want to run it on another Windows desktop that doesn’t have NetBeans.
The method presented here: https://netbeans.org/kb/docs/java/native_pkg.html produces a single .exe file that installs the application on the Win desktop. But, that file is huge because it includes all required portions of the JRE.
The method presented here https://netbeans.org/kb/articles/javase-deploy.html uses the JRE already installed on the Win desktop so the distribution is very small. But, it requires you to distribute both a .jar file and a lib folder.
So, finally, the question. Is there a method that uses the already installed JRE and only requires the distribution of one (small) file?
Thanks.
Since that second option has everything you need to run the app (provided that a JRE is available), you can use that with a third party install packager like izpack
I made java application's setup file through install4j and it is well known that netbeans application does not run without jre. so my question is that is there any way to install jre automatically if it is not installed previously before installing application.I heard that there is way to create .dll or .bat file for that but i dont know exact about that.So please help me as soon as possible.
Thanks and Regards,
Mahesh
http://www.ikvm.net/
This might be a good route to go, i'm looking into it now. In short it pushes your jar to run on a .net build