In a Java action (only from Mendix version 2.4.5 onwards it seems) you can get the runtime version as follows:
import com.mendix.core.conf.Configuration;
Configuration.RUNTIME_VERSION.toString();
In version 2.4.5 this results in the string value "2.4.5"
.
The RUNTIME_VERSION
is actually of type com.mendix.core.conf.RuntimeVersion
(according to the Javadoc), but this class seems to be obfuscated, hence the toString()
call.