Find the answer to your Linux question:
Results 1 to 10 of 10
Hi, I am trying to install JRE 1.5 but I keep getting this error. I will type the command "sh jre-1_5_0_01-linux-i586-rpm.bin" only to get the error message "error: cannot create ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2004
    Posts
    42

    "error: cannot create transaction lock"


    Hi, I am trying to install JRE 1.5 but I keep getting this error. I will type the command
    "sh jre-1_5_0_01-linux-i586-rpm.bin"

    only to get the error message

    "error: cannot create transaction lock"

    I've followed the tutorials on the java.sun.com web site exactly. Then I followed the tutorials on this web site exactly. Each time I get the same problem.

    Any help would be greatly apprecieated. Thanks

  2. #2
    DFX
    DFX is offline
    Just Joined!
    Join Date
    Dec 2004
    Posts
    45
    login as root

    $ su
    <root password>

  3. #3
    Linux Newbie imdeemvp's Avatar
    Join Date
    Sep 2004
    Location
    California
    Posts
    225
    this will help you install java and since you are using the 1.5.0 version this the symlink you need to do in the terminal for the java plugin to work:
    Code:
    ln -s /usr/java/jre1.5.0_01/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-1.0.1/plugins/libjavaplugin_oji.so
    do it as root.

  4. #4
    Just Joined!
    Join Date
    Oct 2004
    Posts
    42
    Alright it worked this time but when i go ahead and try to install the package, it says that it is already installed.... But when I check for the version of java that I am using, it says I am still using 1.4. I need JRE 1.5 because it has the new libraries needed for compiling.

    Any other suggestions?

  5. #5
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512
    Check your "JAVA_HOME" environment variable, probably it is pointing to your old installation. And check your "PATH" variable as well.
    I'm pretty sure you have both the versions avalible on your box right now, and you should be able to type in the full path to where you have JRE-1.5 installed

  6. #6
    Just Joined!
    Join Date
    Oct 2004
    Posts
    42
    I change the variable just by typeing
    JAVA_HOME=xxxxxxxxx
    right?

    How do I know where and what to change it to exactly though?

  7. #7
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512
    No,

    you have to
    Code:
    export JAVA_HOME=xxxxx
    Hmm! When you did your installation of JRE-1.5 you got a question of where you wanted it.
    I can't speak for you, but usually when I do an installation and I have an option to choose where I wish the installation to be placed, I usually install my apps into "/usr/local/<app>", and for JRE-1.5 it would be
    "/usr/local/jre-1.5", usually I do also keep track of my installed versions by using a symlink directory "/usr/local/java --> /usr/local/jre-1.5"
    And therefore I will just need to change my symlink when I do an upgrade rather than change my complete system, and as a plus, I can keep my old versions until I am truly sure that the new one works as it should

  8. #8
    Just Joined!
    Join Date
    Oct 2004
    Posts
    42
    Where java is installed for me is /usr/java/jre1.5.0_01
    so i typed
    export JAVA_PATH=/usr/java/jre1.5.0_01

    This still does not help... "java -version" gives me java 1.4 still.

    What am I doing wrong?
    Sorry I am really new to all of this.

  9. #9
    Linux Enthusiast
    Join Date
    Feb 2005
    Location
    SE, Stockholm
    Posts
    512
    You have to change your PATH variable as well.
    try
    Code:
    export PATH=/usr/java/jre1.5.0_01/bin&#58;$PATH
    My example above will set your newly installed JAVA before the old one in your search path

  10. #10
    Just Joined!
    Join Date
    Oct 2004
    Posts
    42
    Thanks so much... That worked....
    Sorry again... I am new..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •