Announcement

Collapse
No announcement yet.

Installing Java from Java.com (Solved)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Installing Java from Java.com (Solved)

    I need to install the latest Java which is version 6 update 25. The version on my machine is 6 version 20. I have done the update from repos and it says up to date. How do I install the newset version so it works system wide? Thanks
    Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I&#39;m a happy pappy with Linux on my lappy!!!

    #2
    Re: Installing Java from Java.com

    Why do I get this error when trying to run a java program?

    Caused by: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM
    Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I&#39;m a happy pappy with Linux on my lappy!!!

    Comment


      #3
      Re: Installing Java from Java.com

      Sounds like you downloaded and tried, or actually (don't know how) installed the 64-bit java, but you have a 32-bit system/version installed already??
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Re: Installing Java from Java.com

        I only install from repos so far. Does it mean I have 64 bit installed some how? Here is what I have... How do I know if 32 or 64 bit?

        ed@ed-dell:~$ java -version
        java version "1.6.0_20"
        OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1)
        OpenJDK Server VM (build 19.0-b09, mixed mode)
        ed@ed-dell:~$

        I want to install the latest version of Java but don't know how or where to install it to for system wide use like the version above.
        Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I&#39;m a happy pappy with Linux on my lappy!!!

        Comment


          #5
          Re: Installing Java from Java.com

          Originally posted by eddieg780
          OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1)
          This is the community build of Java. The one on Java.com is the official Oracle (formerly Sun) build. IcedTea should be very compatible but probably isn't 100%.

          If you want Oracle (formerly Sun) Java then you have to install it and run sudo update-java-alternatives to select it as the default JRE.

          I'm not sure any of this explains the problem you seem to be experiencing, but there you go.
          Welcome newbies!
          Verify the ISO
          Kubuntu's documentation

          Comment


            #6
            Re: Installing Java from Java.com

            Ok so how do I get rid of icedtea and use java? Will uninstalling it from synaptic work? What else would I have to do? Thank you.
            Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I&#39;m a happy pappy with Linux on my lappy!!!

            Comment


              #7
              Re: Installing Java from Java.com

              It should not be necessary to uninstall IcedTea.

              If you want Oracle (formerly Sun) Java then you have to install it and run sudo update-java-alternatives to select it as the default JRE.

              HTH

              Edit

              Welcome newbies!
              Verify the ISO
              Kubuntu's documentation

              Comment


                #8
                Re: Installing Java from Java.com

                I don't understand what I'm suppose to type in here...


                ed@ed-dell:~$ sudo update-java-alternatives
                usage: update-java-alternatives [--jre-headless] [--jre] [--plugin] [ -t|--test|-v|--verbose]
                -l|--list [<jname>]
                -s|--set <jname>
                -a|--auto
                -h|-?|--help

                What is it asking me to do?
                Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I&#39;m a happy pappy with Linux on my lappy!!!

                Comment


                  #9
                  Re: Installing Java from Java.com

                  You may not have to do anything with update-java-alternatives. One thing you could do which may prove informative though:

                  Code:
                  $ update-java-alternatives --list
                  java-6-sun 63 /usr/lib/jvm/java-6-sun
                  Edit
                  These articles should shed some light on this.
                  • http://www.mail-archive.com/debian-java@lists.debian.org/msg11148.html
                  • https://help.ubuntu.com/community/Java?action=show&redirect=JavaInstallation
                  • http://ubuntuforums.org/archive/index.php/t-366104.html


                  Welcome newbies!
                  Verify the ISO
                  Kubuntu's documentation

                  Comment


                    #10
                    Re: Installing Java from Java.com

                    Originally posted by eddieg780
                    I want to install the latest version of Java but don't know how or where to install it to for system wide use like the version above.
                    Install sun java:
                    Code:
                    sudo apt-get install sun-java6-plugin sun-java6-jre
                    and set all JRE alternatives to sun java:
                    Code:
                    sudo update-java-alternatives --jre -s java-6-sun
                    if you want to set it back to openjdk:
                    Code:
                    sudo update-java-alternatives --jre -s java-6-openjdk
                    BTW you may want to install kalternatives so you can easily configure the alternative systems.
                    Code:
                    sudo apt-get install kalternatives
                    [img width=400 height=258]http://i.imgur.com/s6QVp.jpg[/img]
                    [img width=400 height=278]http://i.imgur.com/VQczh.jpg[/img]
                    ASROCK Z87 Pro4 - i5 4670K - R9 270x ☞ Triple Boot: KDE NEON ★ Windows 10 ★ Windows 7

                    Comment


                      #11
                      Re: Installing Java from Java.com

                      Thanks, ubuntuku. I didn't know about kalternatives.
                      Welcome newbies!
                      Verify the ISO
                      Kubuntu's documentation

                      Comment


                        #12
                        Re: Installing Java from Java.com

                        Thank you ubuntuku. This is exactly what I needed. I did understand how to use update-java-alternatives. Worked perfectly.

                        Ok Telengard and thank you too.
                        Oneiric 11.10 KDE Version 4.7.4<br />Duo core 1.8 Intel<br />4 gig ram<br />Nvidia Go 7300 Graphics<br />Dell E1505 Laptop<br /><br />I&#39;m a happy pappy with Linux on my lappy!!!

                        Comment


                          #13
                          Re: Installing Java from Java.com

                          Glad to know you got Sun Java working.


                          Originally posted by eddieg780
                          Caused by: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM
                          If this problem has fixed, then please consider marking this thread solved by editing the subject of the OP.
                          Welcome newbies!
                          Verify the ISO
                          Kubuntu's documentation

                          Comment

                          Working...
                          X