Java works across multiple platforms by utilizing something known as the Java Runtime Environment (JRE) and a JVM or Java Virtual Machine . A Java Virtual Machine is an application or software device that is used to execute Java code or “applets” as provided, in this case, by websites.