System.setProperty("myProperty", "myValue");
System.setProperty("java.home", "C:\\Program Files\\Java\\jdk1.8.0_201");By setting a system property, you can modify the behavior of the Java Virtual Machine (JVM) or other Java applications running on the same system. In summary, the java.util package library provides a number of utility functions, including the System.setProperty() method, which allows users to set system properties to modify the behavior of the JVM or other Java applications.