Some comments on "How to Configure JDK under Win2k"

xiaoxiao2021-03-06  40

2.3 Class Path ClassPath This is an old problem. It is no longer needed to set the path path in 1.2! ClassPath is set to set the class or third-party library written by the user! For example, the user will compile the class. In the x: // pathto // classes directory, the classes directory is that the package directory, such as COM / Some ... may also be used directly when the class file helloWorld.class is executed, the current directory is any! Java -cp x: / Pathto / class HelloWorld -cp is called ClassPath, setting the effect of setting environment variables ClassPath! You can also use compressed files, such as ZIP or JAR in ClassPath. If users put helloworld.class into some.jar files! Java -cp x: /pathto/some.jar HelloWorld When mixing multiple directory or JAR files, Java virtual machine performs the first class! Java -cp x: / pathto / classes; x: x: x: / pathto / Some .jar HelloWorld will not perform HelloWorld.class in Some.jar

Written "ClassPath is set to set the class or third-party base library written by the user", with the level of my novice, it is estimated that it is not used for a period of time. However, content is still understandable. OK, this "How to configure JDK under Win2K" first, let's get here, or return to the book. From now on, I am going to use UltraEdit as a program editing tool, and the last PATH is also set. Of course, in fact, the simplest Windows notepad can be an editing tool for Java, but it does not color tags.

转载请注明原文地址:https://www.9cbs.com/read-85760.html

New Post(0)