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
Related
I would like to know if it is possible to configure the Java VM used by Eclipse to run in this way, that it uses JavaFX SDK libraries.
Please be aware! I don't want to build JavaFX applications on my own in Eclipse, e.g. by using E(fx)clipse or other plugins.
Another remark: I don't use Java development perspective in Eclipse or a Java project. So it won't work to add the external .jars of JavaFX as user libraries!
In my use case I have an third-party GUI application based on JavaFX that has to be started out of Eclipse.
If I try to start this application I receive the following error:
The system reqirements are not met.
Could not find: javafx.properties
in:
/Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86_64_17.0.2.v20220201-1208/jre/lib
Your Java Virtual Machine seems not to support JavaFX,
required to run the XXX.
Please make sure you provide a valid path to the Java FX
modules during gui installation.
As you can see by the error message my Eclipse runs on a MacOS x64 system.
But I think the way to configure the VM of Eclipse should work on each system the same way.
Thank you.
Steve
If you have a third-party GUI application, then you do not need an IDE like Eclipse.
Ideally the publisher of your app would have provided the app as a package that includes the JavaFX/OpenJFX libraries as well as all the parts of a JDK/JVM needed to run that app on your Mac.
If the publisher gave you only the bare-bones app without the needed libraries & JDK/JVM, you can obtain a JDK/JVM bundled with those libraries.
At least two vendors supply a JDK with JavaFX/OpenJFX libraries:
ZuluFX by Azul Systems
LibericaFX by BellSoft
Both are available free-of-cost with optional support plans available for sale. Download either product as an installer specific to your Mac, while paying attention to either Intel-based Mac or Apple Silicon (ARM, AArch64) based Mac.
You can verify the install by using a console such as Terminal.app to run:
java --version
… and:
which java
You can also use the Finder to locate your installed JVMs by choosing Go > Go to Folder… where you paste:
/Library/Java/JavaVirtualMachines
If your app contains the necessary MANIFEST.MF file, you may be able to launch your app by double-clicking. If not, use a console such as Terminal.app with the java command to launch the app.
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 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.
I'm new to Java Swing & I'm a bit stumped. The application I'm developing will be installed on systems that have not installed JRE. Is there any way to pack JRE inside the Java Swing application and create an EXE file which installs JRE and the application?
Use deployJava.js to ensure a suitable minimum JRE is installed on the computer of the end user. Then use Java Web Start to install and launch the application itself.
Both of those are:
Supplied by Oracle for deployment of rich client apps.
Designed to work on Windows, OS X & *nix.
You can create .exe files from your Java program source using Launch4J. This tool offers an option to set up a relative path to a Java JDK/JRE. This means you could deliver your software with the needed JDK/JRE.
But be carefull. I think you get in trouble if you offer a JDK/JRE for download due to licensing issues.
Best way is to tell the users to install JDK/JRE themselves....
You have to use an installer for that. Try NSIS for instance
In my job we have to deploy an application on various environments. It's a standard WAR file which needs a bit of configuration, deployed on Tomcat 6.
Is there any way of creating a 'deployment package' with Tomcat so that you just extract it and it sets up Tomcat as well as your application? I'm not sure that creating a .zip file with the Tomcat folder would work! It certainly wouldn't install the service.
Suggestions welcome!
I should note that - at the moment - all apps are deployed on Windows servers.
Thanks,
Phill
We use Ant Installer to deploy our application, app server and install it as a service. We embed Java Service Wrapper in the installer to install the Windows service.
One option would be to use embedded Winstone servlet container instead of Tomcat as described here:
http://winstone.sourceforge.net/#embedding
Then you would have executable jar file running your application.
You could probably modify the installer that Tomcat itself uses.
Simply zipping up the directory is a valid solution, but as you note, it will not install the service.
I would probably (a) zip up the directory (b) use one of the open-source service registry programs to install the server and maybe (c) uses NSIS to build an installer.
Depending on the installation environment, your installer may also need to ask the user for a server port, since your application may not be able to use the default HTTP port.
It's commercial, but install4j will do this for you, including installing the service.
You could use BitRock crossplatform installer. You can take a look at BitNami for a number of Java applications like Alfresco, JRoller, and Liferay that have been packaged using BitRock. The BitNami stacks are completely free, though Bitrock itself is a commercial tool (we have free licenses for open source projects)