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?
JavaCompiler
interface itself is always available, but the distinction of JDK vs. JRE depends on there being an implementation. – Rothman