Announcement

Collapse
No announcement yet.

Old Java RE installed... but not according to Adept

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

    Old Java RE installed... but not according to Adept

    Hello, I'm new here and to Kubuntu, too
    I am trying to make Java running with Firefox and since I had a lot of problems now I am trying to uninstalling every installation of Java to start from scratch.
    I removed all Java installation using Adept, but now if i run "java -version" from a console I get:
    java version "1.4.2"
    gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)
    In effect I still find two folders in /usr/lib/jvm:
    java-1.4.2-gcj-4.1-1.4.2.0
    java-gcj

    Furthermore, I have a j2re1.6-sun folder (not empty) in /usr/lib.

    Adept Manager reports "not installed" for both.
    How can I uninstall the 1.4 version correctly and make the 1.6 the one to use?
    Thank you

    #2
    Re: Old Java RE installed... but not according to Adept

    I had the same problem. Try purging all the packages that provide Java except the 1.6.0 one.
    For external use only.

    Comment


      #3
      Re: Old Java RE installed... but not according to Adept

      Ok, I tried your suggestion and it worked. Now the Java RE used is the right one, 1.6.
      Thank you.
      But for some reason I can't find any plugin directory with this new installation, so I cannot configure Firefox to use the plugin. What have I to installa to have this plugin?

      Comment


        #4
        Re: Old Java RE installed... but not according to Adept

        Uhh...
        I didn't know what to do on my installation, since it did everything without a guide. I ended up putting a symlink to /usr/lib/jvm/java-6-sun-1.6.0.00/jre/plugin/i386/ns7/libjavaplugin_oji.so in ~/.mozilla/plugins. Works fine, but I don't know if it's what you're supposed to do.
        For external use only.

        Comment


          #5
          Re: Old Java RE installed... but not according to Adept

          The packet I installed is "ia32-sun-java6-bin", it installs Java in /usr/lib/jvm/ia32-java-6-sun .
          This packet also installs "sun-java6-jre", so they are both listed as installed in Adept.
          But something strange occurs:

          - if I install "ia-32-sun-java-bin" i get a folder "/usr/lib/jvm/ia32-java-6-sun/jre/plugin" where I find a subfolder i386/ns7 with the plugin file (libjavaplugin_oji.so), but if I run a "java -version" i get "bash: /usr/bin/java: No file or directory", so Java is not recognized by system.

          - if I install "sun-java6-jre" i get Java recognized by the system but any plugin directory is created (and any plugins is provided).

          I can't guess what I have to install...
          Can I "tell" in some way Kubuntu that Java is installed?

          Comment


            #6
            Re: Old Java RE installed... but not according to Adept

            Here, "which java" says "/usr/bin/java", which is a maze of twisty little symlinks, all alike, which eventually ends up at /usr/lib/jvm/java-6-sun/jre/bin/java. "sudo ln -s /usr/lib/jvm/java-6-sun/jre/bin/java /usr/bin/java" should fix it.
            For external use only.

            Comment


              #7
              Re: Old Java RE installed... but not according to Adept

              I created the link SheeEttin suggested and now a "java -version" shows that the correct, last version of Java is active. I also re-created (it was already existing) the link to the plugin in the Mozilla Firefox plugin folder. But Java with Firefox insists to not work, the test page on www.java.com does not "see" my Java installation/plugin.

              The link in "/usr/lib/firefox/plugins" appears correct, pointing to "/usr/lib/jvm/ia32-java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so".
              I don't have idea of what I have to make Java works with Firefox. Could anyone can help me, please ?
              I'm completely new to Linux and I have any experience with it.

              Comment


                #8
                Re: Old Java RE installed... but not according to Adept

                What does aboutlugins say?
                Also, does that file exist?
                For external use only.

                Comment


                  #9
                  Re: Old Java RE installed... but not according to Adept

                  aboutlugin does not report any entry for Java.
                  The file libjavaplugin_oji.so exists (it has the permissions set to "-rw-r--r--", I don't know if this matter).

                  I also checked about:config for java entries, and I get:

                  java.default_java_location_others = /usr/java
                  java.global_java_version_file = /etc/.java/versions
                  java.java_plugin_library_name = javaplugin_oji
                  java.private_java_version_file = ~/.java/versions
                  javascript.enabled = true
                  javascript.options.strict = false
                  network.protocol-handler.external.javascript = false
                  security.enable_java = true
                  I don't know if this is correct or not but I noticed that:

                  /usr/ java is a folder that does not exist
                  /etc/.java/versions is a folder that does not exist

                  The name of the plugin is reported as javaplugin_oji
                  when the link in /usr/lib/mozilla-firefox/plugins is "libjavaplugin_oji.so"
                  So I made a copy named as Firefox call it in about:config.

                  I also found something else that confuses me:
                  In /usr/lib/ I have three different foders related to Mozilla:
                  firefox
                  mozilla
                  mozilla-firefox
                  Which is the one used by the Firefox plugins?
                  Now I created the same link to al three directories with both name (javaplugin_oji.so and libjavaplugin_oji.so), closed and restarted Firefox, but nothing is changed.
                  I still can't figure out how it has to work...

                  Comment


                    #10
                    Re: Old Java RE installed... but not according to Adept

                    How about this?

                    1. Install the package sun-java6-plugin
                    2. Run the command
                    Code:
                    sudo update-alternatives --config java[/config]
                    Then choose the Java 6 version from the list.
                    Jucato's Data Core

                    Comment

                    Working...
                    X