public static void main(String[] args) throws Exception {
// Create RMIJRMPServerImpl
//
System.out.println("Create RMIJRMPServerImpl");
RMIServer server = new RMIJRMPServerImpl(0, null, null, null);
// Get the JMX Remote impl version from RMIServer
//
System.out.println("Get JMX Remote implementation version from RMIServer");
String full_version = server.getVersion();
System.out.println("RMIServer.getVersion() = "+ full_version);
String impl_version = full_version.substring(
full_version.indexOf("java_runtime_")+"java_runtime_".length());
// Display JMX Remote impl version and Java Runtime version