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.