After JDK is installed, you need to set the environment variable path. Otherwise, you can only use the direct path to call commands such as java and javac. XX. set the path of the XX package, that is, classpath. These two environment variables must be set separately so that JDK can find the corresponding file.
First, set path:
In this way, you can use java and javac commands. Then set classpath:
R <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + kernel/WuMP3zerV + 7 XEwre + kernel/Na4w/ew/Mv51NrEv8K8vLS/kernel + o7o8YnI + kernel = "brush: java;"> package abuge. home; public class Vector {public Vector () {System. out. println ("AbuGe. home. vector ");}}2. Second file:
package abuge.home;public class List{public List(){System.out.println("AbuGe.home.List");}}
3. The third file is the class that references the package: import abuge is used during import. home. *. The wildcard * is used, causing compilation and running to fail. You can reference it directly (I still don't understand why)
The steps for compiling and running JDK are as follows: during this period, the package is packaged into a jar file and then directly called