There were a few other gotcha's in the tutorial, but the few easier looking ones I saw online had more than one arguments on the same command line--where they downloaded and made java default in one step. I had already downloaded it from the official oracle link by clicking and didn't want to use up megabytes to start all over again. In my case I was able to directly start at step two in a tutorial for someone who:
1) Had openjdk but didn't want to replace it (But see note below)
2) Wanted to make Oracle Java 8 their default (Many tutorials for Java 7 still out there)
3) And again, I'm fairly new to using the command line; still learning, and non-compound commands help me learn better because I can google everything as I'm following along.
The main gotcha in the tutorial is step 7. He has a code step where he simply says you type it to make it work
Code:
$ sudo source ~/.bashrc
Not only does this not work, but in google research there are others who have combined sudo with source for other commands and had the same issue [with no resolution].
So, I wasn't sure what it supposed to do in this case but I found that
failed at this step. It left a blank line.
However, I thought about how many changes I had made, maybe a simple reboot would do the trick...
So now it works. Don't know exactly how. But it works.
(Note and another gotcha)
I want to state this up front that my personal favorite Java IDE is Eclipse. But I downloaded BlueJ for testing purposes because I simply wanted to do a "Hello World" in an IDE environment. It also is one of the few Java IDE's that are available with the vanilla "Search for software" function at SuseStudio (another project I have been playing around with).
Well, with the version I downloaded from an Ubuntu approved repository (not SUSE), BlueJ hasn't been set up to accept Oracle Java 8 yet, so it wouldn't unpack. So I don't know if it true for other IDE's out there, but if your IDE is set to use openjdk, you might want to leave your java settings alone.
P.S. Eclipse took over an hour to download (expected) but I tested a HelloWorld and it works fine.