LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-24-2012, 02:45 AM   #1
Seheri
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
Not able to launch a 32 bit java installer in 64 bit centos 6.2


Hi,

So I have a 64 bit centos 6.2 and when trying to install an Arcsigt application, the GUI of the installer fails to launch. This is the error I get:

Graphical installers are not supported by the VM. The console mode will be used instead...


I have no problem doing the installation on console, but am guessing the gui of the application won't launch after the installation.

By googling and stuff, I kind of figured thats this is related to java. The installer uses 32 bit java environment and my OS is 64 bit. I tried to install both libraries, but I guess haven't installed enough. Thats the brief summary, here are some outputs:

uname -r
2.6.32-220.7.1.el6.x86_64

yum install compat-libstdc++-33.i686 , yum install glibc-devel.i686

installed those packages, which I thought woud solve the problem, but no.

rpm -qa | grep java

java-1.6.0-openjdk-1.6.0.0-1.43.1.10.6.el6_2.x86_64
java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
tzdata-java-2012b-3.el6.noarch
java_cup-0.10k-5.el6.x86_64


..

rpm -qa | grep jre
jre-1.7.0_03-fcs.i586

..

ls -l /lib/libc.so.*

lrwxrwxrwx. 1 root root 12 Mar 23 15:58 /lib/libc.so.6 -> libc-2.12.so

...

ls -l /lib/ld-linux.so.*

lrwxrwxrwx. 1 root root 10 Mar 23 15:58 /lib/ld-linux.so.2 -> ld-2.12.so

....

ls -l /lib/libc-2.12.so

-rwxr-xr-x. 1 root root 1876580 Mar 15 11:33 /lib/libc-2.12.so
....

ls -l /lib/ld-2.12.so

-rwxr-xr-x. 1 root root 142480 Mar 15 11:33 /lib/ld-2.12.so
....

readelf -d hw32
readelf: Error: 'hw32': No such file
...

/lib/ld-linux.so.2 ./hw32

./hw32: error while loading shared libraries: ./hw32: cannot open shared object file: No such file or directory

...

ls /proc/sys/fs/binfmt_misc/

jexec register status

I don't know most of the commands on my own. Referenced from this thread http://www.linuxquestions.org/questi...achine-864378/ similar to my problem, thought would save time.

I faced the same problem in ubuntu, but installing ia32 libs took care of that.

Greatly appreciate any help I coul get on this.

Thanks and Regards
 
Old 03-24-2012, 04:55 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The java to be used must be present in the PATH :

1) su
2) /usr/sbin/alternatives --config java
.... And then select the 32bits java (( jre-1.7.0_03-fcs.i586 )).

If a version isn't present in /etc/alternatives/, make it an entry :

/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_03/bin/java 2


If java 1.6 is required : The package jdk-1.6.0_31-fcs.i586.rpm is here
http://ftp.scientificlinux.org/linux...ates/security/

.
 
Old 03-24-2012, 09:18 AM   #3
Seheri
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you. I'll try that, but installing 32 bit kit is enough or I should install 64 bit rpm too? I think package installer allows only one right? So if I install 32 bit package it takes care of 64 bit apps too ?

Last edited by Seheri; 03-24-2012 at 10:12 AM.
 
Old 03-24-2012, 09:52 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The 32bits java is for 32bits applications only. No 64bits java required.

Both can be installed at the same time.
But you can only have one version java (and javax) in /usr/bin/.
I guess, that the /etc/alternatives/ mechanism can be used
to set the right version.

.

Last edited by knudfl; 03-24-2012 at 09:54 AM.
 
Old 03-24-2012, 10:12 AM   #5
Seheri
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Earlier I tried to install both i586 rpm and x86_64 rpm, but after installing i586, it didnt let me install X86, saying that conflict with the source. So I have to change the options again if I want to run 64 bit java apps in future?


here are the results:

/usr/sbin/alternatives --config java

There are 2 programs which provide 'java'.

Selection Command
-----------------------------------------------
1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
*+ 2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java

Enter to keep the current selection[+], or type selection number: 1

I didn't find jre-1.7.0_03-fcs.i586 in the options, though it shows its installed.

rpm -qa | grep jre
jre-1.7.0_03-fcs.i586

/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_03/bin/java 2 , I don't know what that did either, it didn't add any entry to alternatives file in /usr/sbin or alternatives directory in /etc/

version of java:

java -version
java version "1.5.0"
gij (GNU libgcj) version 4.4.6 20110731 (Red Hat 4.4.6-3)

Also you said "If java 1.6 is required" , how would I know if its required? and java-1.6.0-openjdk-1.6.0.0-1.43.1.10.6.el6_2.x86_64 package is installed, it won't help?

Thanks for your patience

Last edited by Seheri; 03-24-2012 at 10:16 AM.
 
Old 03-24-2012, 10:52 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_03/bin/java 2
... is an example. The actual path to java/jdk1.7.0_03 must be used.

And : "2" can be e.g. 3000 or 4000 etc. etc. :
/usr/sbin/alternatives will enter a usable numeration.


Example with jdk-1.6.0_31-fcs.i586.rpm :
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_31/bin/java 4000

.
 
Old 03-24-2012, 09:45 PM   #7
Seheri
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
.
Error is still not resolved.

here is what i did.

when I tried to install jdk-2000:1.6.0_31-fcs.i586:

file /etc/init.d/jexec from install of jdk-2000:1.6.0_31-fcs.i586 conflicts with file from package jre-1.7.0_03-fcs.i586

so i installed jdk-7u3-linux-i586.rpm from oracle.

/usr/sbin/alternatives --config java

There are 3 programs which provide 'java'.

Selection Command
-----------------------------------------------
+ 1 /usr/lib/jvm/jre-1.5.0-gcj/bin/java
* 2 /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
3 /usr/java/jdk1.7.0_03/bin/java

Enter to keep the current selection[+], or type selection number: 3


java -version
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing
)


/usr/sbin/alternatives --display java
java - status is manual.
link currently points to /usr/java/jdk1.7.0_03/bin/java

/usr/java/jdk1.7.0_03/bin/java - priority 2

under /etc/alternatives:

lrwxrwxrwx 1 root root 30 Mar 24 19:37 java -> /usr/java/jdk1.7.0_03/bin/java


Quote:
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_03/bin/java 2
... is an example. The actual path to java/jdk1.7.0_03 must be used.
path is same for me too, but when giving this command

Quote:
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_03/bin/java 2
what should be the priority?

anyway it was set as 2 when I gave it before I guess, you can see it under display java command.
...
Thanks.

Last edited by Seheri; 03-24-2012 at 09:48 PM.
 
Old 03-26-2012, 04:04 PM   #8
Seheri
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Help anyone?
 
Old 03-26-2012, 05:32 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
Help anyone?
please post in only one forum
this is the same question as
https://www.linuxquestions.org/quest...-6-2-a-936291/


unless you MUST change the default openJDK that is in the cent repos use that
but if you must use the Oracle Java you need to use "alternatives" to change this
or
manually remove the links in alternatives

also the 32 bit versions for the web on a 64 bit os ( yuck )

/usr/lib64/browser-plugins/javaplugin.so
is a link to
/etc/alternatives/javaplugin
and that in turn is a link then to the 32 bit
( i use ALL 64 bit so that is as far as i can go)

Last edited by John VV; 03-26-2012 at 05:37 PM.
 
Old 03-27-2012, 06:29 PM   #10
Seheri
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Sorry, as wasn't getting many replies here, I posted in distro specific section and gave a link there to this thread.

I am embarassed to say I didn't understand your solution.

Anyway I proceeded with console installation and got stuck wit this error Could not initialize class java.awt.Toolkit in the middle.

Thanks.
 
  


Reply



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
CentOS 64 Bit Itanium - Need to run 32 bit application. HELP Squerl101 Linux - Server 2 11-02-2011 02:30 PM
[SOLVED] Java plugin does not work with 64 bit debian Lenny, 32 bit Mozilla 3.6.8, java 1.6_20 Drew Eckhardt Debian 1 02-15-2011 12:24 PM
LXer: Install HVM FreeBSD 7.0 DomU (32-bit) at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit) LXer Syndicated Linux News 0 05-01-2008 08:00 PM
LXer: Install Xen 3.1 Solaris domU (64 bit) under CentOS 5 dom0 (64 bit) LXer Syndicated Linux News 0 09-21-2007 12:00 AM
LXer: Howto install Flash, Java, Real Player 32 bit plugins under 64 bit Firefox LXer Syndicated Linux News 0 03-16-2007 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration