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 5 years ago.
Improve this question
I have a java application which needs the 'TIME' last time my app has run.
i am running jar manually.Where should this last time run info can be stored .Should i store the last run time on file or some environment variables or some other?Please suggest best way of doing this.
A straight-forward way would be with the Preferences API. You won't need to care how the data is actually stored, or where.
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 7 years ago.
Improve this question
I need to create a java program which runs all the time since the boot, and I'd like to be able to comunicate with it when some some event (inputs from a hosted php server) happen.
In my mind there should be a daemon running and a way to give him some instructions, any suggestion? Is there a simple way to do that?
You could create an http endpoint and then do a post to it with the info that you want the service to handle
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 trying to convert my java program, TextFileAnalyzer, to a standalone application. I am not sure how to go about this I have done research and did not find anything helpful. If someone could get me in the right direction that would be awesome! Thanks.. Here is my program for reference:
You don't say what platform(s) you are targeting, or if you need to ship a complete executable. But, there are a few cross-platform Java wrappers. A common one is Launch4J.
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 starting to learn Java I / O and i started with Random Access File,I cant find any good information about using Random Access File if some one cant give me some good references to how it works Does it read/write binary or text files? how can i do this? witch are the most correct ways to read/write in files,thanks to all :)
Maybe you are looking for a tutorial like this?
http://examples.javacodegeeks.com/core-java/io/randomaccessfile/java-randomaccessfile-example/
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 new to Java and I completely have no idea how to do this. I have two separate Java applications and I want to sent a double value from the first application to the second application in order to use it in a calculation method then send the result back to the first application.
what is the easiest/ shortest way to do that?
Create .jar of your first application which contains your calculation method.
And use this .jar as library in your second application.
This is the easiest way
Reference Link : Creating a java library with Eclipse
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 8 years ago.
Improve this question
I want to check whether a browser is installed on my machine using Java. That is I want to check whether Firefox,chrome etc is installed through my java code.
I don't think that is possible unless you have to scan through the OS directories e.g. in program files and check for browser excutable files. You might also as well run into permission problems.