This question already has answers here:
How can I write a Java application that can update itself at runtime?
(9 answers)
Closed 9 years ago.
I'm developing a software which I will patch early & often, so I'm looking into an autoupdater made in Java.
If I google "auto updater java" it gives me the auto updater for Java, not software in general.
EDIT: Java Web Start and JNLP are not viable options since they're buggy and not reliable at all (or such is the general opinion).
Use Java Web Start. It will automatically update your application, when you have an updated version. If properly configured. JNLP works well.
Check out the JnlpDownloadServlet Guide.
Also Check out Andrew Thompson's site.
With jnlp, you can
Add a custom icon.
Install a shortcut on desktop.
Add application in the start menu.
Add a custom splash screen.
Related
This question already has an answer here:
How do I import the javafx correctly into eclipse? ("The import cannot be resolved")
(1 answer)
Closed 1 year ago.
I installed JavaFX 11 in Eclipse using a custom User Library with JavaFX in it, but now I would like to be able to see the documentation in the tooltip windows in Eclipse. Currently it is showing me this:
How do I implement this correctly?
This problem occurs quite often. But there is a simple solution; add the preferences (Add the JRE in your JDK similar like that).
For more information please see here: Solution JRE
After adding the javadoc source to library it should work (hopefully).
This question already has answers here:
How to make an executable JAR file?
(5 answers)
Closed 6 years ago.
I've got a bunch of data stored in tables through Mysql on which I've done some analysis and also export microsoft excel to make graphs and such but the customer wants it to be a desktop application which I have never done before. Currently working in Eclipse. What is the simplest (or any really) way to make a desktop application?
EDIT: I don't think I was clear and that is my fault. I know how to make a GUI in Eclipse I just don't know how to make the desktop icon that will bring up the GUI I make.
For beginners you can start with Swing or JavaFx. It's easy to learn plus they have some excellent tutorials or you can look use more mature Java Frameworks such as Apache Struts, Spring MVC etc.
You can also try netbeans IDE. It has native support for building JavaFX Application and Swing application.
Just make sure you install required plugin to setup your environment in eclipse. For JavaFX you'll need JavaFX plugin: e(fx)clipse.
This question already has answers here:
How can a program control another program?
(11 answers)
Closed 8 years ago.
I wonder is possible to make a bot writen in JAVA, which will open some program(program is under windows), click on the button in this program and type some data, check status of this program(login or logout, this is client for online game).
Which JAVA tools I need ? I think that java robot lib is not enough for this.
Thanks in advance.
You cannot do this using JAVA.
JAVA is a language which is loosely coupled with operating systems, so it can only receive mouse/key messages from underlying OS. Among all the tasks you mentioned , it can only start the program by using Runtime.execute.
If you want to implement a software like this ,you should use Visual Studio and use Microsoft technologies.
This question already has answers here:
How Do I Eject a Volume in Java?
(2 answers)
Closed 3 years ago.
I know that questions like this have been asked before, but I couldn't find any more recent ones and I have a twist to my question.
I've developed an application in Java that is designed to run on removable media, and work on both Windows and Mac. I would like to add a button to safely remove/eject the device, if it is supported (i.e a USB drive). Is there a command line for each operating system that would allow me to do this?
I know that it can be done by an application running on the device to be ejected, because I've seen one that does it, but obviously I understand there are certain limitations to Java.
Thanks in advance
This is something that you will have to do by invoking an auxiliary application. These applications are not platform independent as you wish. So, to do that, find out which OS you are on by using System.getProperty("os.name") and invoke the appropriate command for the detected OS. Invoking applications is done with Runtime.getRuntime().exec(). Search for the commands you need for each OS.
This question already has answers here:
What is Java's answer to WPF? [closed]
(3 answers)
Closed 9 years ago.
We are doing an evaluation of what to use for client technology, I was wondering what Java has to offer.
I know that this is a close duplicate to this question:
What is Java's answer to WPF?
But the answer in the above question is over 2 years old, so the answer today could be different.
This 2011 Java wil lunch JavaFX 2.0, you will use the JavaFX API's with core Java language instead of the JavaFX Script in 1.x versions.
I concur with the others here that JavaFX was probably intended to be Sun's answer to WPF and Silverlight, but it's never quite reached the standard that Microsoft's technologies have.
Another Java alternative to Silverlight is BlazeDS and Spring BlazeDS which use a Java application server as the backend, and Adobe Flash as the client (using Flex). I've never used it, but the combination looks pretty similar to using Silverlight.
JavaFX is in full swing and Oracle has already made early access release available. More answers can be found here, but surely a competitor is in the making that will give its counterpart a tough time soon
I think that JavaFX still lives. You can check Eclipse Rich Ajax Platform too. I think this is suitaible answer to Silverlight.