Minor technical corrections #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is absolutely awesome @lkitching! I've been working with Clojure and the JVM for years and still learned a lot from working through this. Thank you!!
(Thank you also to @kirahowe for the recommendation 😄 )
I bumped into a few minor issues as I worked through the examples. With the changes in this PR, I was able to work through all the examples, see the same behavior, and get more comfortable with the JVM (and Maven, and tools.build 👍 ).
There are a few other potential stumbling blocks that I wanted to discuss with you before attempting to correct/improve:
javac: directory not found: ...until I manually created the output directory (mkdir -p classes/libhello/mkdir -p classes/app).javac: directory not found: ..., though if you assume you're in the same directory as Chapter 4 we might just assume these directories already exist...mkdir appbecause of a slight inconsistency between Chapters 4 and 5:javac -d classes/app -cp libhello.jar src/app/Echo.javavsjavac -cp json-java.jar:libhello.jar -d app EchoJSON.java.cd libhello/cd json-testbeforemvn package,mvn install, etc.cd mainbeforeclojure -M -m greet.main --excite everyone..classfile format specification for the first time yesterday...)java/lang/System.outin thejavapoutput, andjava/lang/System::outin the Constant Pool table. This isn't something I'm intimately familiar with, so perhaps the::double-colon syntax is common.I know this is a lot. Happy to split any of this out to separate issues/PRs if that's helpful. Thanks again!!