How to check if the Java class has been executed from the NetBeans IDE?

advertisements

Background: I use a command line based user-interface to use ( = mostly test ) utility classes. When I use the NetBeans IDE I make use of 'Eric's console' which enables command line i/o from within NetBeans.

Question: I want to check if a class has been run from within the NetBeans IDE or not. Is this possible and if so how to implement this?


Inspect System.getProperty("user.dir") which is where the application is run from.