I have java project (with eclipse IDE) and i want to check if this project is running in the process. Is there a way to run the project just one time ?
Asked
Active
Viewed 367 times
-3
-
There are in theory several ways to ensure that only one instance of your program is running. The question is if you should do that (aka if it is really necessary). In many cases it's far simpler to just... run the application once. – Ben Jun 12 '18 at 08:49
-
Relevant: https://stackoverflow.com/questions/177189/how-to-implement-a-single-instance-java-application, https://stackoverflow.com/questions/177189/how-to-implement-a-single-instance-java-application/2002948#2002948. – Azeem May 12 '20 at 04:27
1 Answers
-1
If I understand your question correctly, once you have a main class with something in it to run, then simply run it in the IDE
Once you've done this there should be a console that comes up at the bottom (or wherever you may have it placed).

Conor Thompson
- 198
- 1
- 15
-
1Why down vote this?? I think this is the appropriate response to the question *"want to check if this project is running in the process."* – 404 Brain Not Found Jun 12 '18 at 09:02