import java.io.FileInputStream; public class MainClass { public static void main(String[] args) throws Exception { String operatingSystem = (String) System.getProperty("os.name"); String javaVersion = (String) System.getProperty("java.version"); String javaDirectory = (String) System.getProperty("java.home"); String userHomeDir = (String) System.getProperty("user.home"); String myFile = (String) System.getProperty("myFile"); FileInputStream fin = new FileInputStream(myFile); } }