CentOS 64 bit and Java

Posted on 2013-12-31
Medium Priority
Last Modified: 2014-01-06
I am trying to get java working in Chrome and Firefox on CentOS 6.3.  I followed this guide:


After running rpm -Uvh jre-7u13-linux-x64.rpm and then alternatives --config java I don;t see the other instance of Java.  Not sure whats going on.

alternatives --config java 

There is 1 program that provides 'java'.

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

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

Open in new window

Question by:dmwynne
LVL 35

Expert Comment

by:Duncan Roe
ID: 39749348
You can only ever have on executable. It's either 64 or 32 bit. You can have co-existing libraries: an executable will use the 64 or 32 bit variant as appropriate.
By the way, Java class files are bytecode and any Java Run Environment will run them on any architecture (not just x86).
LVL 14

Author Comment

ID: 39749951

What does this mean for my situation?  It seems as if Oracle Java is not even recognized.  Is this because openjdk is built-in to Centos?
LVL 62

Accepted Solution

gheist earned 2000 total points
ID: 39750404
browser plugin for openjdk is called icedtea-web
it works in firefox-esr as included in system
there is no support for chrome on stone-age glibc contained in "enterprise linux"
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

LVL 14

Author Comment

ID: 39750519
OK I installed the icetea-web using yum.  Still did not show up in firefox.

I then went back to some other Java install instructions and noticed the symlink I created was broken.  I recreated using the correct path and restarted firefox and Java loads.

ln -s /usr/java/jre1.7.0_45/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins

Thanks for the help.
LVL 62

Expert Comment

ID: 39750526
Icedtea-web works with openjdk 1.7 not some side-install.
LVL 86

Expert Comment

ID: 39751124
You should uninstall that before installing the latest version your package manager allows if you want a standard runtime. As the others have said, other plugins might be necessary for your browsers

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Can you run Linux on a Windows system?  Yep.  Here's how.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question