October 2014
Beginner to intermediate
285 pages
6h 24m
English
“Java” isn’t just one application—it’s actually several. There’s the Java compiler, javac, the Java program runner, java, and the archiver utility, jar. javac takes your text file and creates a magical pile of gunk it calls a class file. You run the java command and tell it to use that pile of gunk, and your program springs to life. We’ll look at that process in more detail as we go along, but that’s the gist of it.
You might have Java installed already. Try running the Java compiler, javac, and see if it’s there:
| | $ javac -version |
| | javac 1.7.0 |
Yup, it’s installed on my machine, version 1.7. If it was not installed, I’d get a message like this:
| | $ javac -version |
| | bash: javac: command not found |
Read now
Unlock full access