About Java classpath Full solution <java The introduction of the second >

Source: Internet
Author: User
About Java Classpath Full solution < bis >
The author of Ugly and Ugly ox
Statement: Welcome reprint, if can not my little name delete the best
Note that the development environment is often not to read the system path, which is running outside the east of the development of the environment on the dead vegetables.
For example JBuilder, jdevoloper from the menu Project->project properties...->paths tag->add...-> add a defined library point OK or new- > Enter name and Classpath->ok
This stuff is added to the classpath (run time can be seen in message view)
For example, say VisualAge for Java, in the dot you want to run the class-> the right mouse click to select the feature-> class path tag 1. -> edit-> Select All, OK, all the classes in the development environment can be found
2. -> immediately calculate (only select the class you need, if useful class.forname, such as through the program explicitly loaded class words, need their own from the editor of the manual home into the development of the environment every ability to help you calculate out, if the memory is no problem, direct editing-> all more convenient yo)
3. If your class doesn't want to introduce a development environment, add an extra path to the dot, edit (the next one), I don't like it, don't go into detail
Master words, directly with JDK, then have to trouble you either add to the System CLASSPATH (Unix under $classpath), or compile the runtime to explicitly indicate CLASSPATH
Here are some of the easiest mistakes a beginner can make
The examples presented in the above section
Assume version one in C:mylibcomshinechinamyclass.java
Post-Compile C:mylibcomshinechinamyclass.class
How do you specify Classpath?
Common problems
1. C:mylibcomshinechina
2. C:mylibcom
That's right
1. C:mylib
2. C:mylib
The rules for finding class are described in the previous section.
To be Continued

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.