DEV Community

Discussion on: Understanding the Java Classpath: Building a Project Manually

Collapse
 
philfrei profile image
Phil Freihofner

Yes, very helpful to see things laid out on the CLI in glorious, gory detail! It does a lot to enhance understanding.

I have a couple minor quibbles/corrections for you to consider. The first is that a .jar file is not restricted to holding .class files, but can also hold source and/or resources. True, a build is going to reference the jar almost without exception for the class files it holds. I did say this was a quibble.

Second, I stumbled a bit over the section "java and javac". I think I might have been less confused if the wording "If we put together a totally barebones HelloWorld.java" were changed to "If we put together the following totally barebones HelloWorld.java". That way, I'm more likely to figure out that the following is a new, ad hoc code example, and not some portion of the project. (I am slow to pick stuff like this up, and can use all the help a writer is willing to give.)

A couple other spots got me, but I figured things out. Overall very helpful article. Thank you!