MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

public class MainClass {

    public static void main(String[] args) {
        System.out.println("  OS name: " + System.getProperty("os.name", "not specified"));
        System.out.println("  JVM Version: " + System.getProperty("java.version", "not specified"));
        System.out.println("  user.home: " + System.getProperty("user.home", "not specified"));
        System.out.println("  java.home: " + System.getProperty("java.home", "not specified"));
    }
}