Method to execute java files: (Related video tutorial recommendations: java video tutorial)
Using environment: jdk1.6
File directory:
public class t{ public static void main(String[] args) { System.out.println("Hi"); } }
package test; public class a{ public static void main(String[] args) { System.out.println("Hi"); } }
The above is the detailed content of How to execute java (command execution). For more information, please follow other related articles on the PHP Chinese website!