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
Related
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.
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()
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 9 years ago.
Improve this question
Problem: I can not understand the meaning of the question and another doubt which is generated from the above problem is that all the java software which i am using are come with executable setup so i am little bit confused from this.
Thank You
Because exe's have to be compiled for specific environments.
Oracle compiles their runtime (JRE) for different operating systems, which interprets your Java file anywhere that has a JRE installed. You can however make an installer for it:
Create Windows Installer for Java Programs
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 9 years ago.
Improve this question
Are there any professional Java desktop applications in use? I'm asking this because I started to study Java and would like to know it's possibilities and/or domains in which java is used.
Some of the largest existing ones are from the software development space (thats also the primary domain for desktop applications) like Eclipse or Netbeans or Rational Software architect.
Another big one is the IBM DB2 Tools (not the database itself). (But if you want to see something as a reference better not take these because they are slow as hell).
http://netbeans.org/
http://argouml.tigris.org/
http://www.magicdraw.com
http://www.jetbrains.com/idea
check out this SO question..its answers contain a list of desktop applications running on java.
here
DumpHD is a well-written application in Java; it works perfectly in Windows and Linux.
It's worth noting that both Eclipse and Netbeans also offer a platform for developing applications on and not just an IDE.
Here is a sample of applications written using the Netbeans Platform
http://platform.netbeans.org/screenshots.html
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 think of doing something like a file cleaner for Windows with Java just for fun, I want it to be able to clean the temp files, caches... etc for the major browsers opera, ie, firefox.
I'm basically looking for some guidance to where to start my research, what are some good reads and basically what kind of libraries will I have to use (if any).
I think you should take a look at bleachbit. It's written in python, but the actions should be easily converted to java. But then again, why not just use bleachbit itself?