Find the answer to your Linux question:
Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 34
That gives: [ed@Linux ed]$ head -1 /usr/bin/limewire #!/bin/sh [ed@Linux ed]$...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Ed
    Ed is offline
    Just Joined!
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    59

    That gives:

    [ed@Linux ed]$ head -1 /usr/bin/limewire
    #!/bin/sh
    [ed@Linux ed]$

  2. #12
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Hmm... Now there you see. I'll just download it and check it out.

  3. #13
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    If you run it in a terminal, does it still give gnu.gcj in the traceback like it did before?

  4. #14
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    it's not in your path man, i should have told you that last time....

    there are a ton of references for adding java to your path, then limewire will be happy.
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  5. #15
    Ed
    Ed is offline
    Just Joined!
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    59
    It gives this message when I try to run it in the terminal:

    [ed@Linux ed]$ /usr/bin/limewire
    Warning: -jar not understood. Ignoring.
    Exception in thread "main" java.lang.NoClassDefFoundError: RunLime.jar
    at 0x4028015f: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x4027308e: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x40274b1a: java.lang.LinkageError.LinkageError(java.lang.Stri ng) (/usr/lib/libgcj.so.3)
    at 0x40275f76: java.lang.NoClassDefFoundError.NoClassDefFoundErro r(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x402c50f9: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
    at 0x40266fdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
    at 0x4023378c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.3)
    at 0x08048900: ?? (??:0)
    at 0x420158d4: ?? (??:0)
    at 0x080486c1: ?? (??:0)
    [ed@Linux ed]$

    None of that makes the slightest bit of sense to me, you might be able to glean something more from it. And Majorwoo, I don't understand what you mean. This came with Red Hat, which I bought rather than downloaded, so you'd think it would at least be configured right.

  6. #16
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    After downloading limewire, I realized that majorwoo is right. For some reason, Sun's JRE doesn't install itself in the PATHed directories, so the GCC java interpreter is still being run. (You can see that from the line "at 0x402c50f9: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)", since it is calling functions in gcj, which is gcc java)
    In a shell, run this:
    Code:
    PATH=`ls /usr/java/j2re*/bin | head -1`:$PATH
    limewire
    That will put the JRE's binaries first in the PATH, so that it's being run instead of GCC's JVM.
    Of course, it's just a temporary solution, but let me know if it works, then pass me the output of "ls /usr/java/j2re*/bin | head -1" and I will fix it for you permanently.

  7. #17
    Ed
    Ed is offline
    Just Joined!
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    59
    I typed in exactly what you said, and it replied:

    ed@Linux ed]$ PATH='ls /usr/java/j2re*/bin | head -1':$PATH limewire
    Warning: -jar not understood. Ignoring.
    Exception in thread "main" java.lang.NoClassDefFoundError: RunLime.jar
    at 0x4028015f: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libg cj.so.3)
    at 0x4027308e: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x40274b1a: java.lang.LinkageError.LinkageError(java.lang.Stri ng) (/usr/li b/libgcj.so.3)
    at 0x40275f76: java.lang.NoClassDefFoundError.NoClassDefFoundErro r(java.lang. String) (/usr/lib/libgcj.so.3)
    at 0x402c50f9: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
    at 0x40266fdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
    at 0x4023378c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, bool ean) (/usr/lib/libgcj.so.3)
    at 0x08048900: ?? (??:0)
    at 0x420158d4: ?? (??:0)
    at 0x080486c1: ?? (??:0)

    I then tried it without "limewire" at the end:

    [ed@Linux ed]$ PATH='ls /usr/java/j2re*/bin | head -1':$PATH

    Nothing happened.

    I then tried to run Limewire again:

    [ed@Linux ed]$ /usr/bin/limewire
    Warning: -jar not understood. Ignoring.
    Exception in thread "main" java.lang.NoClassDefFoundError: RunLime.jar
    at 0x4028015f: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x4027308e: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x40274b1a: java.lang.LinkageError.LinkageError(java.lang.Stri ng) (/usr/lib/libgcj.so.3)
    at 0x40275f76: java.lang.NoClassDefFoundError.NoClassDefFoundErro r(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x402c50f9: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
    at 0x40266fdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
    at 0x4023378c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.3)
    at 0x08048900: ?? (??:0)
    at 0x420158d4: ?? (??:0)
    at 0x080486c1: ?? (??:0)

    =\ It doesn't appear to be working. Here's the readout you asked for:

    [ed@Linux ed]$ ls /usr/java/j2re*/bin | head -1
    ControlPanel

  8. #18
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Oh, sorry. Wrong command (the last one). You should have posted the results of "ls /usr/java". It's very strange that the first didn't work, though. Just post that result and I'll see what I can do.

  9. #19
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    No, it wasn't strange at all!
    It shouldn't be 'ls /usr/java/j2re*/bin | head -1', but `ls /usr/java/j2re*/bin | head -1`. Those ` things are "backticks", while ' is a single quote. If you're using a U.S. English keyboard layout, you'll find backticks to the left of you 1 key. I should have told you that from the beginning, because it's really not easy to know that backticks are used by the shell for command substitution unless you really know your way around the shell.

  10. #20
    Ed
    Ed is offline
    Just Joined!
    Join Date
    Jan 2003
    Location
    Texas
    Posts
    59
    I changed it to backticks, but still:

    [ed@Linux ed]$ PATH=`ls /usr/java/j2re*/bin | head -1`:$PATH limewire
    Warning: -jar not understood. Ignoring.
    Exception in thread "main" java.lang.NoClassDefFoundError: RunLime.jar
    at 0x4028015f: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x4027308e: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x40274b1a: java.lang.LinkageError.LinkageError(java.lang.Stri ng) (/usr/lib/libgcj.so.3)
    at 0x40275f76: java.lang.NoClassDefFoundError.NoClassDefFoundErro r(java.lang.String) (/usr/lib/libgcj.so.3)
    at 0x402c50f9: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
    at 0x40266fdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
    at 0x4023378c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.3)
    at 0x08048900: ?? (??:0)
    at 0x420158d4: ?? (??:0)
    at 0x080486c1: ?? (??:0)
    [ed@Linux ed]$

    The result you wanted was:

    [ed@Linux ed]$ ls /usr/java
    j2re1.4.1_01
    [ed@Linux ed]$

    The "j2re1.4.1_01" is in blue text, if that means anything.

Page 2 of 4 FirstFirst 1 2 3 4 LastLast

Posting Permissions

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