Trying to install Java (JDK 6) on my new Ubuntu system and getting some bizarro errors. This is my first time ever using any flavor of Linux, and so I'm sure this is a user problem (permissions or others).
I downloaded the BIN file directly from the Oracle site (Java SE 6u23 for 64-bit Linux). This was loaded by default at / home / myUserName / Downloads.
From there, I moved the file to / opt / java, which was the directory I created, because (as a Linux newbie) it made sense to be the directory where Java should go.
Then I executed the following 2 commands, for each instruction I found online to run BIN:
chmod +x jdk-6u23-linux-x64.bin
sudo ./jdk-6u23-linux-x64.bin
Now, in my / opt / java directory, I see both the BIN file and the jdk1.6.0_23 directory , which does not seem to be corrupted after checking.
But , when I open a new terminal and start a java version, I get:
The java program can be found in the following packages:
- gcj-4.4-jre-headless
- gcj-4.5-jre-headless
- openjdk-6-jre-headless
Try: sudo apt-get install
What's going on here?!?
(1) Did I try to make / opt / java my Java directory incorrectly?
(2) Did I run the wrong commands?
(3) Is Java 1.6.0_23 even installed on my machine?
(4) What are all these gcj-xxx-headless goals?!?!
Thanks for any input!