Java development starts from scratch, and java starts from scratch

Source: Internet
Author: User

Java development starts from scratch, and java starts from scratch

When I started to learn Java, I felt more fragmented than. NET. So I wrote a post to record the pitfalls I had stepped on, which were not easy to find on the Internet.

1. java Command Format:> cd % pakadgePath> java pakadge. class; note that the path is the package path rather than the class path. The full name of the class is used from the package path. Otherwise, the error "cocould not find or load main class" appears ", this is because the class file has a package prefix, And the java package corresponds to the physical path.

2. The IDE generally lags behind the class library. If you want to upgrade the class library in any language, remember to upgrade the IDE accordingly to avoid the IDE support problem as a class library compatibility problem. For Java, JDK is backward compatible.

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.