Welcome to WebmasterWorld Guest from 54.196.232.162

Forum Moderators: bakedjake

Message Too Old, No Replies

32/64-bit Java on same machine?

Is it possible?

     
6:06 pm on Nov 24, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member jtara is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 26, 2005
posts:3041
votes: 0


I am going nuts trying to get Eclipse to run on Fedora Core 5/64.

I am using the pre-packaged Eclipse from the Fedora repository, which supposedly is complied, so should have no dependence on the installed Java. But presumably plugins will require a Java interpreter. And, anyway, the durn thing just doesn't work. I get an error message about a libary file with an incorrect ELF class.

I came across a forum posting saying that somebody had solved the problem by install a 64-bit Java interpreter.

OK, fine. Now, how?

I already have 32-bit JRE installed, as this is required as a browser plugin. I tried installing 64-bit JRE, and I get a bunch of error messages about conflicting .jar files.

Unfortunately, this is one of those cases where keyword searches break-down... I've been unable to find anything about how to install 32 and 64-bit JRE side-by-side.

Has anybody here done this, and can point me to a web resource on how to do it?

8:40 pm on Nov 24, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member jtara is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 26, 2005
posts:3041
votes: 0


Got it!

First of all, you should not install the RPM version of JRE on Fedora Core. Apparently, it causes some conflicts with Yum packages. Also, the RPM installs in /bin/java, whereas the .bin just installs under whatever directory it runs from (most typically /opt).

Get the .bin versions from Sun. Move them to /opt. Run the 64-bit installer .bin first, then rename the resulting directory in /opt. I added "-64" after "jre".

Now run the 32-bit installer, and leave the resulting directory name as-is. (Or you could rename to -32, etc.)

Create or update the symbolic link for the Firefox plugin to point to the plugin in the 32-bit JRE.

Edit /etc/profile.d/java.sh. Change PATH to point to the 64-bit version.

Use /sbin/alternatives to add 32 and 64-bit versions as alternatives for /bin/java, and select the 64-bit as default.

After doing this, Eclipse will run, and I can still use the Java plugin in Firefox.