Solved

CentOS 64 bit and Java

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

http://platao.plansis.com.br/blogkenio.nsf/dx/06022013205454KCAUVD.htm

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

0
Comment
Question by:dmwynne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 34

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).
0
 
LVL 14

Author Comment

by:dmwynne
ID: 39749951
Hi,

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?
0
 
LVL 62

Accepted Solution

by:
gheist earned 500 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"
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 14

Author Comment

by:dmwynne
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.
0
 
LVL 62

Expert Comment

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

Expert Comment

by:CEHJ
ID: 39751124
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
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
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java imports not found 4 49
restrict decimal places for double datatype 10 31
What browser will run Java? 7 125
Linux kernel panic ext3-fs error 14 28
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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:

749 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