LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 07-09-2010, 08:53 AM   #1
folone
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Rep: Reputation: 0
64 bit java


I've got a problem, described here. The question is - where do I get this jdk-1_5_0_21-linux-amd64? I downloaded a file named like this from here, and tried to run it, but it failed to install:
Code:
Unpacking...
Checksumming...
0
0
Extracting...
./install.sfx.26922: 1: ELF: not found
./install.sfx.26922: 2: Syntax error: ")" unexpected
 
Done.
The system is:
Code:
~$ uname -a
Linux gleontiev-laptop 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 07:54:58 UTC 2010 i686 GNU/Linux
 
Old 07-09-2010, 09:13 AM   #2
folone
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Original Poster
Rep: Reputation: 0
I downloaded the newest java from Oracle website. The error remains.
Code:
Unpacking...
Checksumming...
Extracting...
./install.sfx.27685: 1: ELF: not found
./install.sfx.27685: 2: Syntax error: ")" unexpected
./jdk-6u21-linux-x64-rpm.bin: 255: rpm: not found
Installing JavaDB
./jdk-6u21-linux-x64-rpm.bin: 255: rpm: not found
 
Done.
 
Old 07-09-2010, 09:14 AM   #3
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,125

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
You just showed us you have a 32 bit (i686) copy of Ubuntu installed and you seem to be asking about a problem in installing a 64 bit (amd64) version of the jdk.

You can't run 64 bit programs on a 32 bit OS.

It is best to install software through the package manager of your Linux distribution (Ubuntu). I don't recall what if anything the Ubuntu repositories have for a Sun JDK, but you should look there first. If that really doesn't offer an acceptable choice, then you need the i586 build of the JDK from Sun, not the AMD64 build.

You especially don't want the Red Hat packages for the JDK that you found at both the Sun site and the Oracle site (with rh or rpm in their names). It is not impossible to install Red Hat packages on Ubuntu. But it is a major pain and should not be considered when there are much easier alternatives available.

Maybe, you want to start over first and install a 64 bit build of Ubuntu. I expect you have a 64 bit capable CPU. If you want to run a 64 bit version of the JDK, first you need a 64 bit version of Ubuntu.

Last edited by johnsfine; 07-09-2010 at 09:24 AM.
 
Old 07-09-2010, 09:27 AM   #4
folone
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnsfine View Post
You just showed us you have a 32 bit (i686) copy of Ubuntu installed and you seem to be asking about a problem in installing a 64 bit (amd64) version of the jdk.

You can't run 64 bit programs on a 32 bit OS.

It is best to install software through the package manager of your Linux distribution (Ubuntu). I don't recall what if anything the Ubuntu repositories have for a Sun JDK, but you should look there first. If that really doesn't offer an acceptable choice, then you need the i586 build of the JDK from Sun, not the AMD64 build.

You especially don't want the Red Hat packages for the JDK that you found at both the Sun site and the Oracle site (with rh or rpm in their names). It is not impossible to install Red Hat packages on Ubuntu. But it is a major pain and should not be considered when there are much easier alternatives available.

Maybe, you want to start over first and install a 64 bit build of Ubuntu. I expect you have a 64 bit capable CPU. If you want to run a 64 bit version of the JDK, first you need a 64 bit version of Ubuntu.
But the problem is identical to this one. What would be the right solution to it then?
 
Old 07-09-2010, 09:34 AM   #5
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,125

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
Quote:
Originally Posted by folone View Post
But the problem is identical to this one. What would be the right solution to it then?
That message clearly shows a 64 bit Ubuntu.

One can use either a 32 bit JDK or a 64 bit JDK on 64 bit Ubuntu. There may be some minor complications in setting up a 32 bit JDK on 64 bit Ubuntu, that the person posting that message did not figure out. It may be easier on 64 bit Ubuntu to work with a 64 bit JDK.

You have 32 bit Ubuntu. You cannot use a 64 bit JDK.

Last edited by johnsfine; 07-09-2010 at 09:36 AM.
 
Old 07-09-2010, 09:44 AM   #6
folone
LQ Newbie
 
Registered: Jul 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by johnsfine View Post
That message clearly shows a 64 bit Ubuntu.

One can use either a 32 bit JDK or a 64 bit JDK on 64 bit Ubuntu. There may be some minor complications in setting up a 32 bit JDK on 64 bit Ubuntu, that the person posting that message did not figure out. It may be easier on 64 bit Ubuntu to work with a 64 bit JDK.

You have 32 bit Ubuntu. You cannot use a 64 bit JDK.
Okay, I understand that
So the right question is - make fails with this message:
Code:
Could not load 'clearsilver-jni'
java.library.path = out/host/linux-x86/lib
make: *** [out/target/common/docs/api-stubs-timestamp] error 45
Does anyone know, what that means and how to get through it?
 
Old 07-09-2010, 09:53 AM   #7
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Rep: Reputation: 41
Quote:
Could not load 'clearsilver-jni'
java.library.path = out/host/linux-x86/lib
make: *** [out/target/common/docs/api-stubs-timestamp] error 45
What is this message coming from? What are you trying to make? You were just told to use a 32-bit JDK, not a 64-bit JDK.

Last edited by pr_deltoid; 07-09-2010 at 10:04 AM.
 
Old 07-09-2010, 10:07 AM   #8
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,125

Rep: Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119Reputation: 1119
Quote:
Originally Posted by prdeltoid View Post
What is this message coming from? What are you trying to make? You were just told to use a 32-bit JDK, not a 64-bit JDK.
The other half of this conversation is happening at
http://www.linuxquestions.org/questi...roblem-818890/

Regarding the jdk, the instructions the OP was trying to follow said to install the Ubuntu package sun-java5-jdk

So this whole thread about installing some other JDK version seems to be a sidetrack driven by the experience of someone with 64 bit Ubuntu.

But I haven't tried any of this myself, so I can't say for sure that using the Ubuntu package sun-java5-jdk will actually work.

Last edited by johnsfine; 07-09-2010 at 10:13 AM.
 
  


Reply


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
How to Install 32-bit Java in 64-bit Mepis8 johnsfine MEPIS 1 04-01-2009 02:11 AM
can a 32-bit java app access 2^64 on a 64-bit linux OS? daab Linux - Newbie 4 01-06-2009 05:12 PM
Ubuntu 64-bit, Opera 64-bit, Java not working Debian_Poland Linux - Desktop 6 08-12-2008 02:15 PM
IcedTea Java on 64-bit (Sidux 64-bit) Jongi Debian 0 01-21-2008 05:21 PM
LXer: Howto install Flash, Java, Real Player 32 bit plugins under 64 bit Firefox LXer Syndicated Linux News 0 03-17-2007 12:31 AM


All times are GMT -5. The time now is 06:10 PM.

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