Java class path problems

Here is the organizational form of the document in eclipse.

Here is the organization of files in the hard drive:

 

 src: the compiled code is not written himself.

target is compiled Java class files and in some unused compiled files. This also understood why html, css, js file to your classpath below, because they do not need to be compiled jvm, so do not put in src, directly on the resource folder below it. In fact, the following resource folder contents, class file in the target folder also has a copy. target folder in the class is that we often say that the class path classpath.

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/liujianjun8181/p/12015399.html