You are not logged in.

#1 2009-11-20 14:57:11

panosk
Member
From: Athens, Greece
Registered: 2008-10-29
Posts: 241

Installing both 32bit and 64bit Java

I want to use a commercial Java application for which there is not yet a 64bit version. I was advised to install the 32bit version alongside with my 64 version, and switch manually to the appropriate version whenever I want to run the application. So, how should I do that in my 64bit Arch without breaking anything?

Thanks.

Offline

#2 2009-11-20 15:28:43

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Installing both 32bit and 64bit Java

bin32-jre and bin32-jdk  are in aur.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2009-11-20 15:43:32

panosk
Member
From: Athens, Greece
Registered: 2008-10-29
Posts: 241

Re: Installing both 32bit and 64bit Java

Mr.Elendig wrote:

bin32-jre and bin32-jdk  are in aur.

I only need jre, so after I install it java programs will use the correct jre without any fiddling?

Thanks.

Offline

#4 2009-11-20 18:45:15

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: Installing both 32bit and 64bit Java

Java programs are architecture-neutral, AFAIK.  64-bit java just means that the runtime will use 64-bit instructions, but there isn't really such a thing as a 32- or 64-bit java program.  Have you tried running this program under the native 64-bit JRE?

Offline

#5 2009-11-20 19:52:15

panosk
Member
From: Athens, Greece
Registered: 2008-10-29
Posts: 241

Re: Installing both 32bit and 64bit Java

tavianator wrote:

Have you tried running this program under the native 64-bit JRE?

Yes, without success. It complains about a library with wrong ELF flags. I can't recall the library but I will install the application again and report my findings.

Offline

#6 2009-11-20 22:15:07

uwinkelvos
Member
Registered: 2009-06-07
Posts: 129

Re: Installing both 32bit and 64bit Java

This isn't GWT, is it?

instead of

java myprogram

you need to run:

/opt/bin32-jre/jre/bin/java myprogram

Offline

#7 2009-11-21 12:19:03

panosk
Member
From: Athens, Greece
Registered: 2008-10-29
Posts: 241

Re: Installing both 32bit and 64bit Java

uwinkelvos wrote:

This isn't GWT, is it?

instead of

java myprogram

you need to run:

/opt/bin32-jre/jre/bin/java myprogram

So, it should be that simple. I will try it soon then.
Thanks.

Offline

#8 2009-11-22 10:20:14

uwinkelvos
Member
Registered: 2009-06-07
Posts: 129

Re: Installing both 32bit and 64bit Java

might even be more usable if you put something like that to your .bashrc:

alias java32='/opt/bin32-jre/jre/bin/java'

Offline

#9 2009-11-22 23:13:22

yellowtrolley
Member
Registered: 2009-05-17
Posts: 4

Re: Installing both 32bit and 64bit Java

panosk wrote:
uwinkelvos wrote:

This isn't GWT, is it?

Hi, is there anybody using Eclipse and GWT in arch 64?

I use Eclipse Galileo 64 bit and trying to use GWT I get the error "...wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)..."
Should I nstall bin32-jre from AUR and use it to start a 32 bit version of Eclipse? Is there another way using the 64 bit version of eclipse?

Offline

#10 2009-11-29 21:36:37

Holoduke
Member
Registered: 2009-10-08
Posts: 9

Re: Installing both 32bit and 64bit Java

Install a 32-bit JRE, add it to "Installed JREs" in Eclipse's preferences and choose it in the run settings of your GWT project.

Offline

Board footer

Powered by FluxBB