Announcement

Collapse
No announcement yet.

install Java?

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

    install Java?

    I am still very much the newbie here.
    I am intending to use my Kubuntu 11.10 machine to doctor my Palm Pre cell phone. To do so, I need to install Java(6 is what is listed in the tutorials)
    I read the stickies and press releases about cancelation of Java 6 availability, but don't quite understand what I am reading.
    Can someone walk me through installing Java 6 on Kubuntu machine? with baby-steps?
    Thanks in advance.
    Last edited by GranPaSmurf; Feb 05, 2012, 05:39 PM. Reason: solved
    Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

    #2
    A good starting point is the Java.com site itself. There you can download the appropriate version/type for your OS/computer. Pop on over there and download the file you need, then--after reading any install instructions they have over there--if you're still not sure what to do, let us know! We'll get you going.
    Xenix/UNIX user since 1985 | Linux user since 1991 | Was registered Linux user #163544

    Comment


      #3
      Originally posted by GranPaSmurf View Post
      I am still very much the newbie here.
      I am intending to use my Kubuntu 11.10 machine to doctor my Palm Pre cell phone. To do so, I need to install Java(6 is what is listed in the tutorials)
      I read the stickies and press releases about cancelation of Java 6 availability, but don't quite understand what I am reading.
      Can someone walk me through installing Java 6 on Kubuntu machine? with baby-steps?
      Hi...

      As of late, this can be somewhat of a trick, as Sun Java 6 is no longer offered in Canonical's repositories. However, it's still available but it will require a bit of searching for someone who has it, along with possibly a PPA key. Here is a site that still might have a copy, I forgot which one I used. Be sure to also get both the JRE and JDK components.

      When you get it installed, Firefox may not recognize the plugin. If it doesn't, please follow the instructions given by Steve on post #2 here.

      Hope this helps...

      Regards...
      Last edited by ardvark71; Feb 03, 2012, 11:58 PM. Reason: Changed information
      Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
      How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
      PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

      Comment


        #4
        I'm confused, ardvark. The OP said he needs Java 6--and Java 6 is the current version available on Java.com. So...what am I missing?
        Xenix/UNIX user since 1985 | Linux user since 1991 | Was registered Linux user #163544

        Comment


          #5
          Originally posted by DoYouKubuntu View Post
          So...what am I missing?
          Hi DYK...

          You're not missing anything. From what I have seen (just now) on Java's site, only RPM's and a self extracting binary are offered. I assumed when I made my last post, that something would have to be compiled and/or a set of complex and hard-to-understand instructions would have to be followed in order to get it installed. I thought the instructions I offered would, perhaps, be more easier for a newer user.

          After taking a closer look, the instructions don't seem too difficult, but then again, I've been doing this for awhile. Whichever the OP finds easiest.

          Regards...
          Last edited by ardvark71; Feb 04, 2012, 01:29 AM. Reason: Added and changed information and wording
          Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
          How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
          PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

          Comment


            #6
            Here's my understanding:

            First, to develop you'll need the JDK - Java Development Kit - as opposed to just the JRE - Jave Runtime Environment (the JDK includes the JRE). When searching for packages, 'jdk' is generally part of the name, rather than 'java' (in my experience).

            Second, Sun Java or now Oracle Java is no longer, or will soon not be, available in major distros' repositories, because of Oracle licensing concerns. But the "Open JDK" is now perfectly good for development purposes (in the past it apparently had some issues). And it does have some support from Oracle as well as from the wider community. (If you come across recommendations for gcj, the GNU Compiler for Java, steer clear: I think that still does have areas of incompatibility.)

            Therefore, you need to go to the repositories and install openjdk-6-jdk. (Always prefer the Kubuntu repositories unless there is some great reason to go direct to the original.)

            Baby steps:

            There are a few directions you can take your baby steps in.
            • Do you prefer a GUI installer or a command line installer? I'll assume GUI.
            • Muon comes with Kubuntu but it gives me headaches, so even for a baby I will recommend installing Synaptic. It looks a bit uglier but works better.
              • (For example - I can't even find openjdk using Muon, though synaptic and command line tools can.)
              • Launch Muon Software Center from the K menu. Search for 'synaptic' and select and install 'Synaptic Package Manager'
            • Now launch Synaptic Package Manager from the K menu.
              • In the search box type jdk or openjdk or even openjdk-6-jdk and scroll to openjdk-6-jdk. Click and select 'mark for installation'. There'll be some dependencies - agree to them.
              • Then click 'Apply' in the toolbar.

            I'd rather be locked out than locked in.

            Comment


              #7
              Originally posted by ardvark71 View Post
              Hi DYK...

              You're not missing anything.
              That's a relief! :-D

              From what I have seen (just now) on Java's site, only RPM's and a self extracting binary are offered. I assumed when I made my last post, that something would have to be compiled and/or a set of complex and hard-to-understand instructions would have to be followed in order to get it installed. I thought the instructions I offered would, perhaps, be more easier for a newer user.
              I see. I've never installed Java any way OTHER than directly from Java's site, and I figured if the OP grabbed the version from there that's correct for him, we could talk him through installing it if its own instructions weren't clear enough.
              Xenix/UNIX user since 1985 | Linux user since 1991 | Was registered Linux user #163544

              Comment


                #8
                See OneLine's FAQ: Java Kubuntu post.
                Using Kubuntu Linux since March 23, 2007
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Originally posted by DoYouKubuntu View Post
                  I see. I've never installed Java any way OTHER than directly from Java's site, and I figured if the OP grabbed the version from there that's correct for him, we could talk him through installing it if its own instructions weren't clear enough.
                  Hi DYK...

                  Likewise, I've never done it any other way than what I described. I'll have to give your method a try sometime and compare the two.

                  Regards...
                  Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
                  How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
                  PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

                  Comment


                    #10
                    when I open Synaptic Package Manager, I get several error messages:
                    E: Malformed line 46 in source list /etc/apt/sources.list (dist parse)
                    E: The list of sources could not be read.
                    Go to the repository dialog to correct the problem.
                    E:_cache->open() failed. please report

                    so I launched Muon Software Center to remove Synaptic Package Manager, to do a re-install. It seems to hang up on 'waiting'

                    While, as a Windows user, I am more familiar with GUI, I don't mind using command line, if you can step me through. If you do so, would you mind including a word or two about why/what? I am a Newbie, but don't want to be one for long.
                    Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

                    Comment


                      #11
                      Front ends

                      Both the Synaptic and the Muon are graphical user interfaces for the Debian and that way the Ubuntu package management system. The back end is the apt/dpkg.

                      The Synaptic is using the GTK libraries (Gnome). The Muon is using the Qt libraries (KDE).

                      They can't work if the back end is not ok.


                      Error messages

                      The /etc/apt/sources.list is (man sources.list):
                      Package resource list for APT
                      The package resource list is used to locate archives of the package distribution system in use on the system.
                      E: Malformed line 46 in source list /etc/apt/sources.list (dist parse)
                      Something is wrong in the line 46 or near it.

                      The Muon/Synaptic package manager has a gui to edit the sources.list. Muon > Settings > Configure Software Sources. I'm not sure if the gui can help if the sources.list is malformed.

                      The sources.list is a text list. You could edit it with a text editor. Start the Kate text editor with the root rights:
                      Code:
                      kdesudo kate /etc/apt/sources.list
                      Remember to backup the sources.list before you edit it.

                      If you can't find the problem, you could post the sources.list to the Kubuntu Forums.


                      Java

                      The easiest (an opinion) way to install the OpenJDK is with the command line:

                      Runtime - needed for executing Java GUI and Webstart programs.
                      Code:
                      sudo apt-get install openjdk-6-jre
                      Development - environment for building applications, applets, and components
                      Code:
                      sudo apt-get install openjdk-6-jdk
                      If you want to use Java with a browser - icedtea6-plugin for the browser
                      Code:
                      sudo apt-get install icedtea6-plugin
                      Last edited by OneLine; Feb 05, 2012, 08:54 AM.
                      Have you tried ?

                      - How to Ask a Question on the Internet and Get It Answered
                      - How To Ask Questions The Smart Way

                      Comment


                        #12
                        Originally posted by OneLine View Post
                        The easiest (an opinion) way to install the OpenJDK is with the command line:

                        Runtime - needed for executing Java GUI and Webstart programs.
                        Code:
                        sudo apt-get install openjdk-6-jre
                        Development - environment for building applications, applets, and components
                        Code:
                        sudo apt-get install openjdk-6-jdk
                        If you want to use Java with a browser - icedtea6-plugin for the browser
                        Code:
                        sudo apt-get install icedtea6-plugin
                        Hi...

                        The OP needs Sun's version, as stated in the initial post, "to doctor my Palm Pre cell phone."

                        I'm not sure OpenJDK can do whatever he/she is needing to do with the phone.

                        Regards...
                        Our Lord and Savior Jesus Christ loves and cares about you most of all! http://peacewithgod.jesus.net/
                        How do I know this personally? Please read here: https://www.linuxquestions.org/quest...hn-8-12-36442/
                        PLEASE LISTEN TO THIS PODCAST! You don't have to end up here: https://soulchoiceministries.org/pod...i-see-in-hell/

                        Comment


                          #13
                          OneLine,
                          Thanks for the extra training comments.

                          Originally posted by OneLine View Post
                          Front ends

                          Both the Synaptic and the Muon are graphical user interfaces for the Debian and that way the Ubuntu package management system. The back end is the apt/dpkg.

                          The Synaptic is using the GTK libraries (Gnome). The Muon is using the Qt libraries (KDE).

                          They can't work if the back end is not ok.


                          Error messages

                          The /etc/apt/sources.list is (man sources.list):




                          Something is wrong in the line 46 or near it.

                          The Muon/Synaptic package manager has a gui to edit the sources.list. Muon > Settings > Configure Software Sources. I'm not sure if the gui can help if the sources.list is malformed.

                          The sources.list is a text list. You could edit it with a text editor. Start the Kate text editor with the root rights:
                          Code:
                          kdesudo kate /etc/apt/sources.list
                          Remember to backup the sources.list before you edit it.

                          If you can't find the problem, you could post the sources.list to the Kubuntu Forums.


                          Java

                          The easiest (an opinion) way to install the OpenJDK is with the command line:

                          Runtime - needed for executing Java GUI and Webstart programs.
                          Code:
                          sudo apt-get install openjdk-6-jre
                          Development - environment for building applications, applets, and components
                          Code:
                          sudo apt-get install openjdk-6-jdk
                          If you want to use Java with a browser - icedtea6-plugin for the browser
                          Code:
                          sudo apt-get install icedtea6-plugin
                          I opened 'sources.list' in Kate. Went to Line 46.
                          44. deb http://archive.cononical.com/ lucid partner
                          45. deb-src http://archive.cononical.com/ lucid partner
                          46. http://archive.canonical.com/lucid partner
                          47, deb-src://archive.cononical.com/lucid partner

                          I did:
                          sudo apt-get install openjdk-6-jre
                          in Konsole and found the same error messages.
                          Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

                          Comment


                            #14
                            Thanks Ardvark71,
                            Me neither. I will just be stepping through a tutorial. Thanks to all for your time with the new guy. BTW, does OP mean 'old person' - is there a hidden camera in my machine I don't know about?
                            Using Linux only for a few years, using mostly mouse on GUI (sorry gurus). Kubuntu 19.04 beta on home-built: GigaByte board - AMD Phenom II, 3000 6 core, RAM 4 Gb,

                            Comment


                              #15
                              44. deb http://archive.cononical.com/ lucid partner
                              45. deb-src http://archive.cononical.com/ lucid partner
                              46. http://archive.canonical.com/lucid partner
                              47, deb-src://archive.cononical.com/lucid partner
                              The source lines should start with the comment mark "#" or "deb" or "deb-src".

                              Are there twice the partner repositories ?
                              Lines 46 and 47 are malformed 44 and 45 ?
                              Last edited by OneLine; Feb 05, 2012, 10:21 AM.
                              Have you tried ?

                              - How to Ask a Question on the Internet and Get It Answered
                              - How To Ask Questions The Smart Way

                              Comment

                              Working...
                              X