Google Plus

Howto install Java Runtime Environment in fedora and Linpus

Written by Mel Kham on . Posted in Linpus

To install Java runtime enverinment in fedora or Linpus, please folow the instructions below.

First : Go to the link below and download the rpm package of java.

http://www.java.com/en/download/linux_manual.jsp?locale=en&host=www.java.com:80

then
open the terminal

su –

choose where you want to install the java , for me i choosed /usr/java

cd /usr/

create a new folder for java

mkdir java

go back to the directory where you downloaded java ,then copy the downloaded file to this directory(/usr/java) ,in my case :

cd /home/unixmen/Download

[root@zinovsky-fedora Download]# cp jre-6u11-linux-i586-rpm.bin /usr/java

then
[root@zinovsky-fedora Download]# cd /usr/java/
make the file executable :
[root@zinovsky-fedora java]# chmod a+x jre-6u11-linux-i586-rpm.bin
run installation :
[root@zinovsky-fedora java]# ./jre-6u11-linux-i586-rpm.bin

output:
[root@zinovsky-fedora java]# ./jre-6u11-linux-i586-rpm.bin
Sun Microsystems, Inc.  Binary Code License Agreement

for the JAVA SE RUNTIME ENVIRONMENT (JRE) VERSION 6 and
JAVAFX RUNTIME VERSION 1

SUN MICROSYSTEMS, INC.  (“SUN”) IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY “AGREEMENT”).  PLEASE READ THE AGREEMENT
CAREFULLY.  BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT.  INDICATE ACCEPTANCE BY
SELECTING THE “ACCEPT” BUTTON AT THE BOTTOM OF THE
AGREEMENT.  IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE “DECLINE” BUTTON AT THE BOTTOM OF THE
AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT
CONTINUE.

1.  DEFINITIONS.  “Software” means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source files,
header files, and data files), any updates or error
corrections provided by Sun, and any user manuals,
programming guides and other documentation provided to you
by Sun under this Agreement.  “General Purpose Desktop
…………….
…………..
………………….
………………
………………
Please enter “yes” or “no”.
Do you agree to the above license terms? [yes or no]
yes
Unpacking…
Checksumming…
Extracting…
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u11-linux-i586.rpm  
Preparing…                ########################################### [100%]
1:jre                    ########################################### [100%]
Unpacking JAR files…
rt.jar…
jsse.jar…
charsets.jar…
localedata.jar…
plugin.jar…
javaws.jar…
deploy.jar…

Done.


Then you have to run this command :

[root@zinovsky-fedora java]# rpm -iv  jre-6u11-linux-i586.rpm

 


then verify if java subfolder is in /usr/java

And is done :)

 

For more about configurating java on your firefox please visit :

http://www.java.com/en/download/help/5000010500.xml#100

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • newbie

    Hi,

    I cannot get the Java installed. I had already installed Java, but is did not work, so I removed that, and tried to install it by using the information on this page. Here’s what I got:

    “Please enter “yes” or “no”.
    Do you agree to the above license terms? [yes or no]
    yes
    Unpacking…
    Checksumming…
    Extracting…
    UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
    replace jre-6u13-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: a
    error: invalid response [a]
    replace jre-6u13-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
    inflating: jre-6u13-linux-i586.rpm
    Preparing… ########################################### [100%]
    package jre-1.6.0_13-fcs is already installed

    Done.
    [root@localhost java]# rpm -iv jre-6u13-linux-i586.rpm
    Preparing packages for installation…
    package jre-1.6.0_13-fcs is already installed
    [root@localhost java]# ”

    I had removed the previous Java installation (same release), as it did not work. Apparently I did not know how to remove all, what should I do? I really need the Java to work as there are several sites that I need to access that require working Java. I have earlier removed IcedTea, so as of now there is none working Java on my system. Please, help. I am a newbie, I have no clue what to do.

  • newbie

    Hi,

    I cannot get the Java installed. I had already installed Java, but is did not work, so I removed that, and tried to install it by using the information on this page. Here’s what I got:

    “Please enter “yes” or “no”.
    Do you agree to the above license terms? [yes or no]
    yes
    Unpacking…
    Checksumming…
    Extracting…
    UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
    replace jre-6u13-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: a
    error: invalid response [a]
    replace jre-6u13-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
    inflating: jre-6u13-linux-i586.rpm
    Preparing… ########################################### [100%]
    package jre-1.6.0_13-fcs is already installed

    Done.
    [root@localhost java]# rpm -iv jre-6u13-linux-i586.rpm
    Preparing packages for installation…
    package jre-1.6.0_13-fcs is already installed
    [root@localhost java]# ”

    I had removed the previous Java installation (same release), as it did not work. Apparently I did not know how to remove all, what should I do? I really need the Java to work as there are several sites that I need to access that require working Java. I have earlier removed IcedTea, so as of now there is none working Java on my system. Please, help. I am a newbie, I have no clue what to do.

  • newbie

    I had removed the previous Java installation (same release), as it did not work. Apparently I did not know how to remove all, what should I do? I really need the Java to work as there are several sites that I need to access that require working Java. I have earlier removed IcedTea, so as of now there is none working Java on my system. Please, help. I am a newbie, I have no clue what to do.

    • pirat9

      check your install Java directory.
      please post the output of :

      ls /usr/java

      if this directry is empty , then download the java from http://javadl.sun.com/webapps/download/AutoDL?BundleId=29209
      [root@localhost ~]# chmod +x jre-6u13-linux-i586-rpm.bin
      You have new mail in /var/spool/mail/root
      [root@localhost ~]# ./jre-6u13-linux-i586-rpm.bin
      Sun Microsystems, Inc. Binary Code License Agreement

      for the JAVA SE RUNTIME ENVIRONMENT (JRE) VERSION 6 and
      JAVAFX RUNTIME VERSION 1

      now
      check if java is installed with
      java -version

      (you will see like this)
      [root@localhost ~]# java -version
      java version “1.6.0_0″
      IcedTea6 1.3.1 (6b12-Fedora-EPEL-5) Runtime Environment (build 1.6.0_0-b12)
      OpenJDK Client VM (build 1.6.0_0-b12, mixed mode)

      now how to add java to your browser (firefox)
      Create this :

      mkdir .mozilla/plugins

      then
      [root@localhost ~]# cd .mozilla/plugins/
      [root@localhost plugins]# ls
      [root@localhost plugins]# ln -s /usr/java/
      default/ jre1.6.0_13/ latest/

      then
      [root@localhost plugins]# ln -s /usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so
      [root@localhost plugins]# ls
      libjavaplugin_oji.so

      Now it should be working .
      for any other question please post it on the forum . Thanks

      • lion

        Can I ask a really newbie question?

        You said:

        “check your install Java directory”

        how do I do that? What to type, and where?

        “now how to add java to your browser (firefox)
        Create this :”

        What should I create, and how? I mean if I want to add java to my browser?

        Please help; I must admit that I need more or less copy-paste advice on these things, as Linux is really new to me. All advice is appreciated, no matter how small.

        • lion

          Hi pirat9;

          could you also help me on my issue, it would really help, as I am lost on the linux, and really have problems with that.

  • joel thomas

    Hey can you help me.
    I do everything but some reason this happens.
    -

    Do you agree to the above license terms? [yes or no]
    yes
    Unpacking…
    Checksumming…
    Extracting…
    UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
    inflating: jre-6u14-linux-i586.rpm
    Preparing…

    then nothing happens
    I can wait for ages but nothing happens.

    If you know whats wrong.

    Can you email me at jojotomaz@yahoo.com

  • pirat9

    joel thomas
    try to install from the bin file and not from the rpm

  • Pirat9

    How to add java plugisn to your browser :
    cd /usr/lib/mozilla/plugins
    then ln -s /usr/java//jre/plugin/i386/ns7/libjavaplugin_oji.so
    Done
    Please if didnt work. post in the forum your question with ls /usr/java and i will reply soon possible.
    We are here to help you , never mind

  • Shinji

    Do i put the new folder in the java folder or outside of the java folder BTW mine wont let me make a new folder please help

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Amit Rai

|

I just renamed shared.xml and it logged in and created a new shared.xml.

DB Griffin

|

Larry Page is not being completely honest! The manner in which the PRISM program/project works does not need access from company administrators or owners, so called “direct access”; the access to the information is already there. These tech company CEOs take for granted the actual intelligence of most end users of their products. All it takes is a little digging and reading to go from ignorant to informed on these things especially on exactly how the internet works/functions in the U.S.A. I find Larry Page’s remarks just as laughable as Al Gore’s claim to “inventing” the internet/world wide web!

If you, as an end user, are reading this post; I challenge you to research these matters yourself. It really is quite simple with all the “information sites” that exist on the web today ie Wikipedia, & other online encyclopedias that actually list source material, as well as highly respected tech sites and blogs that also list their source material. Be warned: this is only the tip of the iceberg and these tech CEOs know and understand this; they are scrambling in attempt to perform DAMAGE CONTROL to save the company and what little trust thay have left from their products end users/consumers.

Am I a skeptic? I believe someone has to be or needs to be at this point in time! If your not just a little skeptical of the government, tech companies, and the people that are in charge of these agencies and companies; you need to be, even if just a little skeptic. For your own personal protection and security! I know I was a part of this community for over 14 years!

Anders Jackson

|

As I understand it so do VLC use same encoders as ffmpeg. And yes, there are less code that can break when you use command line instead of a graphical UI.

And may I ask what mono has to do with VLC? *facepalm*

Anders Jackson

|

Just some thoughts about Java.

OpenJDK7 are now THE Java implementation and Oracles are just one more of the reimplementations. So you should not need to install Oracles version.

And you really don’t need to remove the OpenJDK7 installation to also have Sun Java JDK 7. Just run

sudo update-java-alternatives –list

and select which java you want to have as default java of all that is installed.

And if you want to run a program with one special version, check manpage for java-wrappers how to do that.

man java-wrappers

so you can run java program rasterizer like this:

JAVA_FLAVOR=openjdk rasterizer
JAVA_ARGS=-Xmx80m rasterizer

JAVA_BINDIR=/usr/share/

etc

Anders Jackson

|

Yes, it is. If you are a “5 years old schizophrenic kid” who can’t restrict what effects to use and what to not use. It’s actually usefull, if you can restrain yourself.

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .