homepage Welcome to WebmasterWorld Guest from 54.237.98.229
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
32/64-bit Java on same machine?
Is it possible?
jtara

WebmasterWorld Senior Member jtara us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3167255 posted 6:06 pm on Nov 24, 2006 (gmt 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?

 

jtara

WebmasterWorld Senior Member jtara us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3167255 posted 8:40 pm on Nov 24, 2006 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved