I got a Java application, I want to provide user ability to compile Java source code (Using JavaCompiler interface)
If the user run the application on a JRE, my application should tell user that the no JavaCompiler instance aviable.
so how to detect JDK or JRE in java programe?