Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-19-2015, 01:59 PM   #1
LQ Newbie
Registered: Feb 2015
Posts: 2

Rep: Reputation: Disabled
java installation

hello everyone
I'm new with Linux,,I tried to install java by using the instructions in the link below

the only problem appeared in the last step "java -version" is:

neaam@neaam-desktop:~$ java -version
bash: /usr/bin/java: cannot execute binary file

can anyone help me?
Old 02-20-2015, 12:14 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,813

Rep: Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749Reputation: 749
Which distro are you running?
Old 02-20-2015, 04:27 PM   #3
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
This is the 1 I use for debian
Old 02-20-2015, 11:48 PM   #4
LQ Veteran
Registered: Feb 2015
Location: Oregon, USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,279
Blog Entries: 3

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836


Welcome to the forum

If Java is not already installed and you're using Ubuntu or a derivative, I've had great success installing it from here.

Old 02-21-2015, 12:09 AM   #5
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,189

Rep: Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507Reputation: 2507
java is installed by default
it is OpenJDK - " icedtea"

what is NOT installed is Oracles java
the java that is trying to be for pay and closed source
Old 02-21-2015, 11:19 AM   #6
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 3,260
Blog Entries: 1

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
Unless you need a specific version of java in debian, it is in the repositories.

$ sudo apt-get install icedtea-7-plugin

Which should give you the browser plugin and all the dependencies, including openjdk-7-jre.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java installation Whatif Linux - Newbie 2 02-04-2011 11:05 PM
java installation DanielTan Linux - General 15 02-04-2007 10:04 PM
JAVA JRE installation to view java applet through browser dipenchaudhary Linux - Software 1 01-23-2006 09:20 AM
Java installation shyamlahari Linux - General 6 10-09-2003 04:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration