java - how to check if javafx application is already running programatically? -


I am trying to run out of the scope of the application class to run a Java class application from a thread. The problem is that I am using the loop for a while to generate the application and whenever it is called twice, then it throws it illegally, so I need to know different ways if my other tasks To continue any ideas, the application is already running?

The only way you can do this is to catch IllegalStateException

You see JavaFX source code:

  if (launch collade.get endset (true)) {new invalid format expansion ("Application launch should not be called more than once") ; }  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -