Create your own update system in Java [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I would like to implement a Java application that can download a new version (.jar file) from a given URL, and then update itself at runtime.
We retrieve the versions available on the internet
We compare them with the current version
If the current version is newer, a message is displayed telling the user that there is no update possible
Otherwise, the user is informed of the possible versions and given the choice when to download.
If he wants to download one, download the one he chooses
Then we restart the program
The program at startup must see if there is a new version, and if necessary, take it ==> use a launcher
What is the best way to do this and is it possible?

Take a look at Getdown. This solution precisely addresses your problem. The docs say:
(GetDown) is a system for deploying Java applications to end-user computers, as well as keeping those applications up to date.
Don't bother with Java Webstart as since java 11 it will no longer be available.

Related

How do you get a handle on a running application's context? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
There are ways to get the details of the run time "-XX:" parameters passed to the JVM as some java code is compiled and executed and, of course, you also get the System.{getenv(), getProperties(), ...} and input parameters passed into the running instance from your code, but what kind of strategies or applications are being used to customize a running instance?
As part of my unit tests at times I need to marshall some data before passing it into my application and/or set up many different input parameters. I went monkey and included some name-protocolled files in "user.dir", "user.home" and one step below "java.home" as well as "user.name", the start time of the running application, ... to setup the name of my log files, decide if I wanted to redirect log System.{out or err} to files or having them dump the values on the screen ... instead to having to do this programmatically. I found a question asked 13 years and 8 months ago about these kinds of things:
Current directory in java properties file
I think in java you could use the reflection API to strategize a solution to those kinds of problems. Do you know of any application taking care of such issues or strategies used to deal with them?

How to check if particular software is installed using java, Linux [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm writing an application in java. In order to work my code properly, I want to check whether several software are installed. (This should be done in the java code itself.)
How can I do that?
This is a Linux system.
There are similar questions, but not exactly what I want.
Check if a program is installed on a linux machine from a java applet
There is no universal way of doing it.
You can use one of following approaches
Use java bindings for particular package manager for your platform if they exist.
Use one of the system tools like locate, whereis, etc. (which you didn't like)
Implement your own installed package detection, according to your requirements

Check using JavaScript or C# if Java Application (NOT JAVA!) is installed on client computer [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I write project. In this project, when user click on some links - I call via my custom protocol("jpck") My Java Application(Java plugin) - and do something
So I show to User always popup when I write if you don't have a plugin - Install Plugin
Now I want check If he has this plugin
Its need work against MAC and PC
I'm not sure if I can do that on C#, because MAC have protection from all
Let's say your user install your plugin with an installer.
Ask this installer to write in some well defined file the location selected by user (either default location or a custom one).
Then from your program, check this well defined file.

Find least used icons/files/folders on desktop in windows [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have an assignment to find least used icons on desktop in Windows.
I need to code using JAVA. Which property of the File object in JAVA will be useful?
I have started analysis on it. A help will be much appreciated.
Have you checked out the File API? File#lastAccessTime is probably what you are looking for. Keep in mind that this only works in Java 7.
As for FREQUENCY of use, I do not think Windows keeps any data per-file... So you will have to rely on the last time of modification, possibly vs time of creation. The Java function you will need to rely on is lastModified(), eg
file_list[i].lastModified()

Licensing a java web based application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am developing a web application that will be sold later on, and was wondering how to add the concept of license to it, so that I can avoid it's piracy, and it can be used for given period of time only?
You can have a centralize licence server , have a DB to check user's status , expose this thing using webservice so that any of your app can consume it.
I've seen Java enterprise tools do the usual serial number/license file thing. Worked pretty well for them. All you'd need to do is put some static code in the application that would execute when the JavaEE container loads the WAR file and have that check the serial number.

Categories