1

I followed this instruction https://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7 to install Java on my Ubuntu system, but to the line

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0/bin/java" 1 

I just get this response:

update-alternatives: using /usr/lib/jvm/jdk1.7.0/bin/java to provide /usr/bin/java (java) in auto mode. 

Can someone tell me how to install it?

8
  • 4
    Why didn't you post this at Ask Ubuntu? Commented Oct 1, 2012 at 19:40
  • That looks like an informational message, not an error message. What happens after you get that message? Commented Oct 1, 2012 at 19:41
  • nothing happens. that's the only output Commented Oct 1, 2012 at 19:42
  • You may also want to try asking on our Unix and Linux sister site. Commented Oct 1, 2012 at 19:43
  • Run this command in the terminal : java -version if you get a version, java is installed... Commented Oct 1, 2012 at 19:43

1 Answer 1

1

Looks like it worked? What's the output of java -version? If it says "Java version 1.7.0" you're all set.

Sign up to request clarification or add additional context in comments.

6 Comments

sleonhardt@sleonhardt-VirtualBox:/usr/bin$ java -version -bash: /usr/bin/java: cannot execute binary file
Hmmm, that looks pretty bad. Have you tried removing all java related packages and reinstalling altogether? The command for removing packages is aptitude purge
does that only remove java related stuff or how do I specify that?
Check your java related packages with dpkg -l | grep -i java, then delete those with aptitude purge.
there aren't any; ii gir1.2-javascriptcoregtk-3.0 ii libjavascriptcoregtk-3.0-0 ii libjs-jquery
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.