Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Community,
I would ask you, if there is a way how to determine - at runtime (e.g. using tJava component) - if a job has been launched from IDE or from shell.
Thanks in advance
Michal
Hi @michalcz,
This is a real hack, but it worked when I tried it....
java.io.Console console = System.console(); if (console != null) { System.out.println("CommandLine"); } else if (!java.awt.GraphicsEnvironment.isHeadless()) { System.out.println("Studio"); }
Regards
Richard
Hi @michalcz,
This is a real hack, but it worked when I tried it....
java.io.Console console = System.console(); if (console != null) { System.out.println("CommandLine"); } else if (!java.awt.GraphicsEnvironment.isHeadless()) { System.out.println("Studio"); }
Regards
Richard
Glad it worked for you