Java on Red Hat Enterprise Linux

By Ed Ed | Posted at 23:56

The bundled Open Java on RHEL is okay. It's also painfully slow, particularly compared to the competition. Most people still call it Sun Java, though it's now owned by Oracle. Because we have installed the development packages, we have the Open JDK (Java Development Kit) so we'll have to replace it with Oracle's JDK for Linux. This is so much faster, there simply is no comparison, at least on desktop applications. That would be things like Jedit (a java-based text editor), the Bible Desktop or "JSword" (java version of Crosswire's Sword Project) and any number of java games.

Get the RPM for the Java Development Kit (JDK) from Oracle. On that page, scan downward from the big fancy icons and in the first box, you'll see a button for "Download JDK" -- click that. Use the drop-down list button to select "Linux." Checkmark the box agreeing to the license, accept their cookies and click the red "Continue" button. From there is should be another page with two options. We are going to use the first one, which ends in "rpm.bin." It's a rather large package, so it may take awhile. Don't try to install from your browser; it won't work.

Here we go with the commandline again -- open Terminal and login as root. This is not a typical situation with RPM files. Once you are logged in as root, you'll probably be in your user account Home, and the file is in Downloads, so go there:

cd Downloads

There is no reason you can't install it from here, but you may eventually want to start moving stuff out of Downloads to reduce the clutter. You can create another folder inside your Home directory and name it whatever you like.

We'll probably need to change the permissions on this file, but it almost never downloads as an executable binary, which it is. If you run ls -l and don't see X's in the file permissions, you'll need to change them:

chmod u+x jdk-6u23-linux-i586-rpm.bin

Next, we install it:

sh jdk-6u23-linux-i586-rpm.bin

That sh command is simply an older and very standard terminal shell (environment), and the bin file has a wrapper around it written in a script which expects you to use that shell. You may or may not see a bunch of text about licensing, but if it comes up, simply hit the SPACE bar a few times until it runs out and type "yes" at the question prompt. It should install automatically from there. It will create a bunch of RPMs and other files, but the wrapper is supposed to run RPM for you.

Now let's tell RHEL to start using this faster java. The command is rather obscure, and you'll probably never see it again after we take care of this and the next item. It tells RHEL you want to switch among the alternative java environments on the system.

/usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000

Finally, we want Mozilla and any other browser in the system to use this new java. We use that "alternative" command one more time:

/usr/sbin/alternatives --install /usr/lib/mozilla/plugins/ /usr/java/default/jre/lib/i386/ 20000

That's all one line. Restart Mozilla and it should now be using your new java. Maybe someday the Open Java project will catch up and provide something closer to Oracle's product. This particular process continues to be overly complicated to make it work right, and it shouldn't be necessary.

As a final item before we close out the desktop portion of this series, I need to mention I found one critical package missing which did not get installed by default. Chances are you haven't missed it yet, but you will later. The default system spelling checker is something called "hunspell" and the default dictionary for English didn't get installed on my system. So while your Terminal window is still open, you need to do this:

yum install hunspell-en

If English is not your preferred language, you can always ask Yum what else is available:

yum search hunspell

Among the items listed should be something there you can recognize and use.

Ed Hurst is Associate Editor of Open for Business

Re: Java on Red Hat Enterprise Linux

You ought to utilize the form that you feel most good with. Linux appropriations are customization to the point that you can simply make something work, regardless of what you're utilizing. animated video services. On the off chance that you are new to Linux, and haven't put a ton of time into a specific appropriation, I would consider CentOS or RHEL (Red Hat Enterprise Linux).

Posted by Mariyah Will - Feb 8, 2017 | 7:29

Re: Java on Red Hat Enterprise Linux

Download shareit for ios latest

Posted by shareit for ios - Mar 28, 2017 | 11:18

Re: Java on Red Hat Enterprise Linux

I like this site and article as well. Thanks for posting such good content

Posted by download bbm apk - May 17, 2017 | 10:34

Re: Java on Red Hat Enterprise Linux

You know that sticking to a schedule is important for your business.
It helps you get through your never-ending To Do list and keeps everything running smoothly.
The same is true when it comes to your Jvzoo Review Site. Creating a social media schedule is the best way to stay on top of your social media marketing.
How can you create a social media posting schedule for your business?
Use these tips in SociVideo Jukebox Review to create a schedule that works for your business.

Posted by Anonymous - May 24, 2017 | 13:44

Re: Java on Red Hat Enterprise Linux

JAva and Linux are getting more career opportunities in the IT industry nowadays. Most of the technologies demanding professionals in Java, Linux etc and this attract many candidates to choose this profession. This page is Recommended Reading for those who are interested in same.

Posted by steve larsc - May 25, 2017 | 7:23

I am continually amazed by the amount of information available on this subject. What you presented was well researched and well worded in order to get your stand on this across to all your readers.

Posted by - Jun 6, 2017 | 18:27

Read more

Incredible Article it its truly instructive and inventive update us as often as possible with new upgrades. Read more its was truly important. much obliged. 

Posted by Read more - Jun 7, 2017 | 8:32

Re: Java on Red Hat Enterprise Linux

It is my first time I visit here. The way you create a website very thorough and good. This is very very impressive. I found so many entertaining stuff in your blog, especially its discussion. I will continually be coming on a regular basis you just read your posts.
animal jam, a10, color switch

Posted by a10 - Jun 13, 2017 | 3:03

Re: Java on Red Hat Enterprise Linux

Great! Thanks for sharing the information. That is very helpful for increasing my knowledge in this field.

Posted by Survival Games - Jun 16, 2017 | 7:34

Re: Java on Red Hat Enterprise Linux

Welcome, Very awesome your blog zone. I am particularly enthusiastic and fantastic this. When I read this blog partition. So I like it. Grateful to you for giving this post to us.
Gurgaon Delhi Blogspot 1,
Gurgaon Delhi Blogspot 2,
Gurgaon Delhi Blogspot 3,
Gurgaon Delhi Blogspot 4,
Gurgaon Delhi Blogspot 5

Posted by Natasha Singh - Jun 19, 2017 | 12:16

Re: Java on Red Hat Enterprise Linux

I enjoyed over read your blog post. Your blog have nice information, I got good ideas from this amazing blog. I am always searching like this type blog post.

Posted by slither io - Jun 22, 2017 | 2:07

Re: Java on Red Hat Enterprise Linux

It is my first time I visit here. The way you make a site exceptionally exhaustive and great. This is exceptionally noteworthy. I discovered such a large number of engaging stuff in your blog, particularly its exchange. I will constantly be going ahead a general premise you simply read your posts. Write my Coursework

Posted by Write my Coursework - Jun 22, 2017 | 7:23

Re: Java on Red Hat Enterprise Linux

I just want to say thanks for your wonderful post, it is contain a lot of knowledge and information that i needed right now. I wanna tell you that if you want to get more fun and enjoyment then visit my site and get more fun.
colour switch

Posted by colour switch - Jun 22, 2017 | 7:39

Re: Java on Red Hat Enterprise Linux

That sh order is just a more seasoned and extremely standard terminal shell (condition), and the receptacle record has a wrapper around it written in a script which anticipates that you will utilize that shell. You might possibly observe a cluster of content about authorizing, yet in the event that it comes up, just hit the SPACE bar a couple times until the point when it runs out and sort “yes” at the inquiry incite. It ought to introduce consequently from that point.

Posted by UK Dissertation Help - Jun 22, 2017 | 8:39

Please enter your comment entry below. Press 'Preview' to see how it will look.

Sign In to Your Account
User Name:
:mrgreen: :neutral: :twisted: :arrow: :shock: :smile: :???: :cool: :evil: :grin: :idea: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad: :!: :?:
Home About Connect: Twitter Facebook RSS
© 2001-2012 Universal Networks, All Rights Reserved. Some content rights may be held by Universal Networks' providers and used under license. Powered by ServerForest and SAFARI. Learn about our privacy policy here.