Sun Microsystems has said that it plans to build a Java Virtual Machine for the iPhone using the recently released iPhone SDK. The program, which will be based on the Java Micro Edition version of Java, will allow applications “as much access to the native functionality of the iPhone as possible,” said Eric Klein, vice president of Java marketing at Sun. “Once our JVM is on the phone, we anticipate that a large number of Java applications…