Results 1 to 6 of 6

Thread: Error when running .sh that uses Java

  1. #1

    Default Error when running .sh that uses Java

    I get some errors when I try to run/install an accounting/bookkeeping software. I have no clue how to fix the problem.
    I'm running openSuse13.1 64-bit.

    Below is what is displayed when I run the command in terminal.

    Code:
    bo@linux-tue8:~/Applications/Temp$ sh JFSBok_unix_2_0_5.sh
    Unpacking JRE ...
    Preparing JRE ...
    Starting Installer ...
    Could not display the GUI. This application needs access to an X Server.
    If you have access there is probably an X library missing.
    *******************************************************************
    You can also run this application in console mode without
    access to an X server by passing the argument -c
    *******************************************************************
    An error occurred:
    java.lang.UnsatisfiedLinkError: /home/bo/Applications/Temp/JFSBok_unix_2_0_5.sh.5921.dir/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
    Error log: /tmp/install4jError50949.log
    I have searched and found the libmawt.so, but it is of course not in a lib/i386 folder. Since this is a 64-bit installation it's in a lib64 folder.
    Also the libXtst.so.6 is in a lib64 folder.

    I assume I need to install a different version of java/jre, but I haven't been able to find it with the "Install/Remove Software".
    Please, I need some help understanding what is wrong and how to fix it (if it is possible to fix).

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,793
    Blog Entries
    1

    Default Re: Error when running .sh that uses Java

    Can you describe exactly what this app is, what you think it should do and where it came from?

    If this truly is a Java app, then it wouldn't be trying to access real mode libraries, it ordinarily should run entirely within the JRE.

    If this is some kind of journaling file system enhancement, that's not an accounting program(at least not in the sense of a financial app).

    TSU

  3. #3

    Default Re: Error when running .sh that uses Java

    Hi tsu2,

    well the application is an ordinary bookkeeping software, used by normal small company. I run the Windows version on another computer and it works fine. Now I want to move over to Linux completely and is therefore trying to install this. This is the only bookkeeping software for Linux I have found so far.

    I downloaded the application from http://www.jfsbokforing.se/JFSBokfDemo.html

    I'm not at all sure this is java app, but since it tries to access lib files in the jre folders I assumed it had something to do with java.

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Error when running .sh that uses Java

    On 2014-06-30 17:06, primerone wrote:

    > I'm not at all sure this is java app, but since it tries to access lib
    > files in the jre folders I assumed it had something to do with java.


    I'd guess that it tries to install its own JRE version, too.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  5. #5

    Default Re: Error when running .sh that uses Java

    Hi again,

    I have an update on this now.
    I tried installing the same .sh file on my laptop, which runs openSUSE 13.1, 32-bit version. There it installed correctly and I was able to run the application.
    After that I tried again on my desktop (64-bit openSUSE 13.1), but through the "32-bit terminal". It didn't work, so I guess it has something to do with 64-bit vs. 32-bit JAVA/JRE installation.

    Anyway, after struggling with this and some other issues (menu configuration, wifi, etc.) I have given up on Linux. It is simply too complicated. I'm now installing MS Windows again. It feels like being defeated, but at least I get my computer fully operational.

    I apologize to you all for taking up your time with my questions and wish you the best in the future.

  6. #6

    Default Re: Error when running .sh that uses Java

    Quote Originally Posted by primerone View Post
    Code:
    An error occurred:
    java.lang.UnsatisfiedLinkError: /home/bo/Applications/Temp/JFSBok_unix_2_0_5.sh.5921.dir/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
    Error log: /tmp/install4jError50949.log
    I have searched and found the libmawt.so, but it is of course not in a lib/i386 folder. Since this is a 64-bit installation it's in a lib64 folder.
    Also the libXtst.so.6 is in a lib64 folder.
    As that libmawt.so is a 32bit library, you need the _32bit_ version of libXtst.so.6 in /usr/lib/.
    So install the package libXtst6-32bit.

Tags for this Thread

Posting Permissions

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