Announcement

Collapse
No announcement yet.

jre

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

    jre

    Hello. I just installed xubuntu on my old desktop. I would like to use a download manager for my music service called emusicj. It lists jre as a dependency. I read a java wiki, which claimed that a free version of java should already be installed; however, when I ran emusicj from a terminal I got an error. So, I think that the java that is installed is not the jre. So, how do I get jre since the wiki did not mention it specifically? (I am also thinking of using jajuk and jripper. They also rely on jre. I think they are launched with a command like "java -jar file.jar". Note: this won't work with emusicj since it does not have a .jar extension.) Thanks.

    john

    #2
    Re: jre

    You need to install the package sun-java-jre
    first look here to enable extra repositories
    https://help.ubuntu.com/community/Repositories
    then look here for some info on java
    https://help.ubuntu.com/community/Ja...0c9dd3a60e777b
    and here
    https://help.ubuntu.com/community/Ja...0c9dd3a60e777b

    Basically, you can find the package sun-java-jre in adept or synaptic, or whatever xubuntu uses, and use the links as reference if there are any errors (probably not any for Xubuntu)

    Then run the command
    sudo update-alternatives --config java
    and select the sun version if it is not already the default

    Comment


      #3
      Re: jre

      Your instructions were different from the wiki link, so I decided to follow the wiki link. But I still couldn't launch the application. According to the developer of emusicj, the error indicates the wrong version of jre. So I followed their instructions for setting the default version of java (only slightly different). That didn't work either.

      That's when I decided to look at /etc/apt/sources.list. I noticed that after using synaptic to enable more repositories, there were still a couple that could be uncommented: the backports. After reloading the repositories, I saw jre6 listed. (I know this one works because I tried fluxbuntu and installed jre6 on it and emusicj worked fine. Also, I didn't need to set the default jvm - everything seemed to work (launched emusicj and jajuk).)

      So now I want to go back - reset everything the way it was before installing jre5 (I guess uninstall jre5 and edit /etc/jvm), but I don't know how to set free java as the default. Can you help me out again? Thanks.

      john

      Comment


        #4
        Re: jre

        First, this is not the "free" java, but sun java version 6.

        BTW, it's going to be "free" in some time, if sun keeps it's promises.

        Now to the important thing .

        You should look into the dir /etc/alternatives, and check that the following links are pointing to the right files.

        Code:
        javier@servlistados:/etc/alternatives$ ls -l java*
        lrwxrwxrwx 1 root root 36 2007-02-12 11:13 java -> /usr/lib/jvm/java-6-sun/jre/bin/java
        lrwxrwxrwx 1 root root 46 2007-02-12 11:15 java.1.gz -> /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz
        lrwxrwxrwx 1 root root 39 2007-02-12 11:16 java_vm -> /usr/lib/jvm/java-6-sun/jre/bin/java_vm
        lrwxrwxrwx 1 root root 38 2007-02-12 11:16 javaws -> /usr/lib/jvm/java-6-sun/jre/bin/javaws
        This lines are from my Edgy install. If you are using another version, they could be different.

        You will need to known how to delete and how to make a link from the command line, so if you need more help, feel free to ask.

        Javier.

        Comment


          #5
          Re: jre

          Close. These two lines are different:

          Code:
          lrwxrwxrwx 1 root root 55 2007-02-12 11:15 java.1.gz -> /usr/lib/jvm/java-6-sun-1.6.0.00/jre/man/man1/java.1.gz
          lrwxrwxrwx 1 root root 57 2007-02-12 11:15 javaws.1.gz -> /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz
          Note: I am able to run other java applications without problems (e.g., jripper).
          Note: I had ubuntu server 6.10 + fluxbux installed prior to xubuntu. I was able to install jre6 and use emusicj without problems. How is this possible?
          Note: If we can't get this working, I'll have to go back to ubuntu server edition. Unfortunately, the wiki implies it may be difficult to get xfce working with it. Also, xubuntu has ooo word processor (not entire suite) installed, which is nice. I will miss xubuntu, but this program is essential to me. So I'll probably go with icewm.

          Thanks.

          john

          Comment


            #6
            Re: jre

            These lines are only docs, so no, the problem is not there .

            I'm sorry, but I'm out of ideas.

            Javier.

            Comment


              #7
              Re: jre

              Thanks. I remember it working on dapper, and I've had it working on everything except xubuntu. I'm not tripping. Except for a lot of time spent on trying to get it working, no real harm done.

              john

              Comment


                #8
                Re: jre

                I have a new thought. How can I uninstall free java? I can't find it and I don't know the names of the packages. This may work if anyone knows the files to uninstall. Thanks.

                john

                Comment


                  #9
                  Re: jre

                  The packages start with j2. j2re1.4 is the runtime enviroment, j2re1.4-mozilla-plugin the mozilla plugin (difficult one ), j2sdk1.4 the SDK, etc...

                  Javier.

                  Comment


                    #10
                    Re: jre

                    That didn't work! For some reason only the server edition has the correct java (in terms of working with this one app). I guess I'll try adding the server cd to synaptic and see what happens. Also, I read the java wiki again and tried this command

                    Code:
                    sudo update-alternatives --config jar
                    and got this output

                    There is only 1 program which provides jar
                    (/usr/bin/fastjar). Nothing to configure.
                    Perhaps this is the problem? Symlinks (not that I'm completely sure what that means)?

                    Thanks!

                    john

                    Comment


                      #11
                      Re: jre

                      Not likely.

                      Also java versions between flavours of ubuntu (Server, kubuntu, xubuntu, etc...) are exactly the same. They are even fetched from the same repos .

                      If the "server" system was a real different version (i.e. 6.04 versus 6.10), then, yes, it could be a version problem.

                      Javier.

                      Comment

                      Working...
                      X