Java web app, JNI & shared libraries.

I am developing a web application where the core functionality resides in a compiled dynamically shared library developed in C. I have developed wrapper methods to this library in via the JNI. The web framework is Struts to be deployed in Websphere. The business logic will be done in Java.
As this is a webapp, there will be multiple client requests coming into the container at once. I understand how the servlet lifecycle works and have coded the Java portion of the app to be concurrency aware. However, I am not too sure as to how the code in the shared library will work with concurrent requests.
The JNI methods are currently coded as static methods. So will multiple requests conflict with eachother in the calls to the native code? And if so, can I place the calls to the native methods in a synchronization block to prevent data corruption in the native code?

So will multiple requests conflict with
eachother in the calls to the native code?The calls itselves won't conflict. You just have several Java threads executing the same native method simultaneously, this is normal.
On the other hand, If your C code is not thread-safe (e.g it keeps data in static variables) then you would definitely like to surround each JNI calls with synch block.
However, this may lead to poor performance and scalability - if all threads but one are hanged on a semaphore....
Denis.
http://www.excelsior-usa.com/xfunction.html
Library for painless JNI programming

Similar Messages

  • Java Web App for EP5 SP5

    Hi
    Recently I developed a Java web app for a Portal client.  The client is on EP5 SP5 with ITS and LDAP servers (a 3 server architecture).  I then used the deployment tool to create the necessary ear file and then successfully deployed it to the SAP J2EE Engine.  I then navigated to the following url:
    http://<portal_server>:8100/<web_app>/welcome.jsp
    However I am having trouble with the following:
    1) the jsp pages are not being rendered properly.  in fact welcome.jsp does not have any jsp tags at all but I am still getting a compiling exception.  as soon as I change the extension to .html the page is displayed fine.  issue: why am i not able to view the jsp pages.  error: com.inqmy.services.servlets_jsp.jsp.CompilingException ID 17013
    2) the web app I have developed utilises the sapjco functionality to connect to the relevant R3 system.  in my web app directory structure I have included the necessary sapjco.jar in the WEB-INF/lib directory but get the attached jco error. (I shouldnt need to set the classpath since the sapjaco.jar file must get picked up from WEB-INF/lib directory).  Error: At times I get a NoClassDefFoundError stopping at the line which requires the sapjco.jar file (where it uses JCo.Pool class) and at other times I get the "could not load middleware layer".
    I have tried numerous things to fix it but in vain.  Any thoughts around how I could go about resolving the issues will be greatly appreciated. 
    Willing to provide screenshots if required.
    Cheers
    Ankit

    Hi Alon
    Thanks a lot for the info!!
    I have read the doco you asked me to have a look at and it sounds reasonable.  But the question that I have is that is it possible to successfully include the relevant jar's in the application's WEB-INF\lib folder?? I ask this since I would expect the SAP j2ee class loader to look at the required jar's in the WEB-INF\lib folder?!? (Also the section on "Adding a Reference from a Deployed Application to a Service or Library" talks about an app that may want to use resources from OUTSIDE the application EAR.)
    So if I use any jar's such as sapjco, xerces, activation and mail I will need to add them to the library.txt if they are not already there (which they should be since the portal uses them) and then add the reference in reference.txt.
    Your thoughts will be appreciated.
    Cheers
    Ankit

  • SAP EP5 SP5 Java web app problem

    Hi
    Recently I developed a Java web app for a Portal client. The client is on EP5 SP5 with ITS and LDAP servers (a 3 server architecture). I then used the deployment tool to create the necessary ear file and then successfully deployed it to the SAP J2EE Engine. I then navigated to the following url:
    http://<portal_server>:8100/<web_app>/welcome.jsp
    However I am having trouble with the following:
    1) the jsp pages are not being rendered properly. in fact welcome.jsp does not have any jsp tags at all but I am still getting a compiling exception. as soon as I change the extension to .html the page is displayed fine. issue: why am i not able to view the jsp pages. error: com.inqmy.services.servlets_jsp.jsp.CompilingException ID 17013
    2) the web app I have developed utilises the sapjco functionality to connect to the relevant R3 system. in my web app directory structure I have included the necessary sapjco.jar in the WEB-INF/lib directory but get the attached jco error. (I shouldnt need to set the classpath since the sapjaco.jar file must get picked up from WEB-INF/lib directory). Error: At times I get a NoClassDefFoundError stopping at the line which requires the sapjco.jar file (where it uses JCo.Pool class) and at other times I get the "could not load middleware layer".
    I have tried numerous things to fix it but in vain. Any thoughts around how I could go about resolving the issues will be greatly appreciated.
    Willing to provide screenshots if required.
    Cheers
    Ankit

    Hi Ravi
    I used the SAP J2EE Engine Deploy Tool to create the war and ear archives as well as deploy the ear archive.  As I used this tool I included the required jar files inclusing the sapjco.jar inside WEB-INF\lib of the web archive (WAR).  I tested this in a tomcat environment before deploying it to the portal environment.
    1) The screendump is as below:
    Internal Server Error 500!
    com.inqmy.services.servlets_jsp.server.jsp.CompilingException: ID17013: Error in compiling : java.io.IOException: CreateProcess: javac -encoding UTF8 -nowarn C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\work\jsp_welcome1092865716140.java -classpath ".;.\system-lib\boot.jar;.\system-lib\jaas.jar;;.;.\additional-lib\jnet.jar;.\additional-lib\jdbc20.jar;.\services\iiop\iiop.jar;.\services\servlet_jsp\servlet_jsp.jar;.\services\p4\p4.jar;.\additional-lib\mail.jar;.\services\dbpool\dbpool.jar;.\additional-lib\connector.jar;.\additional-lib\activation.jar;.\services\deploy\deploy.jar;.\additional-lib\jta.jar;.\services\ts\ts.jar;.\additional-lib\jsse.jar;.\additional-lib\servlet.jar;.\additional-lib\ejb11.jar;.\additional-lib\jms.jar;.\services\ejb\ejb.jar;;C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\root\WEB-INF\lib\activation.jar;C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\root\WEB-INF\lib\inqmyxml.jar;C:\SAP_J2EEngine6.20\alone\services\servlet_jsp\work\jspTemp\changePassword\root\WEB-INF\lib\jcoapi.jar;C:\SAP_J2EEngine6.20\alone\D
         at com.inqmy.services.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:296)
         at com.inqmy.services.servlets_jsp.server.jsp.JSPServlet.getClassName(JSPServlet.java:333)
         at com.inqmy.services.servlets_jsp.server.jsp.JSPServlet.service(JSPServlet.java:207)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:136)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:856)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:598)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:260)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:164)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:909)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl3.ParserRunner.run(ParserRunner.java:30)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
    As advised by you I included the inqmyxml.jar file in the WEB-INF\lib folder for this application.  But it doesnt seem to have made a difference.
    2) for the second issue where sapjco.jar isnt found the error is as seen below.  At line 42 in R3.java I make a  JCO call -
    pool = JCO.getClientPoolManager().getPool(POOL_NAME);
    Error Dump below:
    java.lang.NoClassDefFoundError
         at R3.(R3.java:42)
         at ChangePassword.doPost(ChangePassword.java:76)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:136)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:856)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:598)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:260)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:164)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:909)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl3.ParserRunner.run(ParserRunner.java:30)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
    I would have expected EP5 to be able to find the appropriate jar files.  Especially since it has its own library of jar files to work with.  I was reading some J2EE Engine doco and came across two files library.txt and reference.txt.  Do I need to maintain these files as I deploy my application?
    Your thoughts will be appreciated.
    Cheers

  • With 8.0 version of Firefox, clicking links to .tif files on a java web app are being downloaded as .ppt, .part.ppt., or .ppt.part. The change of name to PPT causes them to associate with powerpoint. IE opens the files normally as .tif as expected.

    When using java based webapp to view a remote directory, clicking .tif files offers the standard "Open" dialog. If you select open, an error is produced saying file is not a valid powerpoint file. Selecting download will download the file as a .ptt, .part.ppt, or .ppt.part file in the temp directory with a seemingly random unique filename as if the system was creating a temp file. Going to the same web app under Internet Explorer works properly and will view or download the file as a .tif image file. This had been working fine previously to the 8.0 update.

    When using java based webapp to view a remote directory, clicking .tif files offers the standard "Open" dialog. If you select open, an error is produced saying file is not a valid powerpoint file. Selecting download will download the file as a .ptt, .part.ppt, or .ppt.part file in the temp directory with a seemingly random unique filename as if the system was creating a temp file. Going to the same web app under Internet Explorer works properly and will view or download the file as a .tif image file. This had been working fine previously to the 8.0 update.

  • Opening Local Apps through a Java web app

    Hello, I have a local application on my C: drive that I would like to launch by clicking on a link in a web app of mine. Can anyone point me in the right direction of how to do this? For instance, if I had the following:
    C:/Program Files/My App/app.exe
    How would I launch this from a completely separate web app that I have developed?

    By letting the link open a website that has a signed applet that has the premissions to invoke Runtime.exec(). In other words: no conveniant way, thankfully.

  • Reading file from Java Web App?

    My application has a custom configuration file that I want to read at runtime.
    What directory should I put the file in and how should my code locate the file at runtime?
    Obviously, I don't want to hardcode paths.
    Is there an easy way to find the file at runtime if it's in my classpath root?
    (sorry for the repetition, I posted a vartion of this question at the end of another thread.)

    Just read your post in the other thread ... another why of doing this could be to set your own environment variable and then use it within your app.
    ie. in a DOS window (or better still, use the Environment Variables option within the Properties of My Computer).
    c:\>set myAppCfgFile = c:\myapp\myconfig.inithen in Java.
    String pathAndFilename = System.getenv("myAppCfgFile"); // note, environment variables are not case sensitive (or shouldn't be).

  • Problem with java web app

    Hi...
    I have mounted my java application on a server.
    I use tomcat/mysql...
    Initially it seems all things good, ...but if i try to enter my application the day after (for example), she seems not to query the db.
    I'm new to java programming.
    Please help me,
    andrea
    ps. My application consist in a servlet how manage the request,...and in a class how manage the db....

    Hi duffymo,
    you're all rigth, now I'll try to explain me better.
    I can query my db on my server, and the application start with all the parameters ok.
    No errors were report from Tomcat log files,....
    ..but now i'm suspiciose about connnection with the db...
    I have created only one object of the class which manage the db connection, and i ahve putted it in the applicaton context, so it's accessble from all of the servlets,...but now, i have read all the code which another person has written and I saw he make a "autoCommit=false" connection type....
    now,...I think this is the problem. After mySql timeout expire, my application "think" to be connected yet, isn't it?
    Ti's possible add in the string of driver loader "autoReconnect=true" and set autoCommit = false and change in = true only we need to do a transaction, and turn back to = false when we will finish the transaction ?
    Tahnk you
    andrea

  • Why PHP is better than JSP,Servlet(Java Web Apps) ?

    Well, my heart says JSP, Servlets are better but rent a coder and job market, demand-supply seems to be saying a different story... ? Why we should not learn PHP then ?

    dcminter wrote:
    You can develop web sites in PHP in two shakes of a lambs tail. But they aren't maintainable as they would be in .NET or J2EE and again the performance (which dicates what you can do as well as scalability) is between a scripted language with buggy runtime and a compiled language with an optimized runtime so you tell me. Yes, but rather like Spinoza's argument for the existence of God, an application that has existence is more perfect than one which exists only in the conception. Even if the conceptual one is faster.
    I don't denigrate languages like PHP that help novices get stuff done.
    To address the OP's complaint: If one language was objectively "best" then we would only need one language. In practice they all have strengths. The more you learn the more you'll know which to use for the task at hand. That said, to learn any language (even PHP) in profound depth will take the best part of ten years and maybe longer. Sometimes expediency leads us to use the language we understand better to solve a problem for which it is not ideally suited.Eloquent - well said.
    Bonus points for that Spinoza reference.
    %

  • What is the best way to maintain state in Java web apps?

    Hi,
    been looking at best way to maintain state between requests in JSP.
    Ive been trying to use URL rewriting but been getting problems. I understand I can also achieve this using cookies.
    Are there any other better ways of doing this.
    I don�t know if the problem is with JBuilder4 or something in the Tomcat server?
    Any suggestions would be appreciated.
    thanks.

    I think if you use JavaBeans that implements Serializable , it might maintain state (but not sure of this).
    HttpSession is one option but , sessions have limitations - they timeout, they don't work when the page is cached by the browser and they don't work if Cookies are disabled in the browser.
    Database is always an option, and there are two types of DBs , in-memory like HSQLDB etc , or the regular RDBMS like MySQL , Oracle etc.
    If you only want to maintain state between HttpRequests, then use the request object which is implicit in JSPs.
    I think your URL Encoding is not working most likely because you have disabled Cookies in your browser and that's why you see jsessionid.
    If you enable Cookies in your browser then, the jsessionid should not appear.
    There are other options I'm sure, but I'm only aware of the above at this time.... may be someone else might know more.

  • Accessing libraries from java web start

    hi guys,
    I am new to forums and sorry if this question has been posed before. I am trying to access jogl.dll and jogl_cg.dll through java web start. These libraries are getting downloaded on the client machine as a jar file. I am using the following commands to access these files
    System.loadLibrary("jogl");
    System.loadLibrary("jogl_cg");
    Its giving me the follwing error
    Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\java\tools\jogl_cg.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at testlib.Main.main(Main.java:35)
    Java Result: 1
    I am getting unsatisfied link error as its searching for another library which jogl_cg.dll depends upon. Can anybody suggest me what other library do i need to attach and the way i am accessing the libraries using system.loadlibrary is correct or not
    I would appreciate your help in this regard.
    Thanks in advance,
    ravi ananthuni.

    Actually you're correct. There was a resource missing.
    The error was in the way I was packaging mail.jar. This archive has resources located in the META-INF subfolder inside the jar file. I'm running on Windows 2000, and I was expanding the mail.jar file, and then recreating and signing the archive using the Netscape utility signtool with the -Z option:
    signtool -k <mycert> -d <keystore_path> -Z mail.jar <expanded JAR directory>.
    When creating the JAR file, the META-INF folder is deleted and replaced with the META-INF entries for the JAR you've just created. The other resources packaged in the META-INF are overwritten, and so the signed mail.jar did not work properly -- hence the NoSuchProvider exception.
    For reference the solution is to sign the directory without creating the jar file:
    signtool -k <mycert> -d <keystore_path> <expanded JAR directory>
    and then create the jar file from the signed directory using another archiving utility. I used the command line interface for Winzip 8.0.
    cd <expanded JAR directory>
    wzzip -rp ..\mail.jar *
    http://developer.netscape.com/docs/manuals/cms/41/adm_gide/app_sign.htm#1012833
    Thanks!
    -- Eric.
    Hi,
    you suppose that the .jar files are not signed
    correctly,
    but what should have gone wrong?
    You can check that each .jar is correctly signed with
    the jarsigner tool:
    jarsigner -verify -verbose foo.jar
    If all your jars are reported to be signed, the only
    other error I can imagine regarding signing is the
    "all .jars referenced by one .jnlp must be signed
    by the same key" rule. (Read Section 5.4 of the
    jnlp 1.0.1 spec).
    javax.mail.NoSuchProviderException: No provider for
    Address type: rfc822
    files to be listed as resources, Java Web Startfails
    to launch my application (unsigned application
    requesting unrestricted access to system).I would have expected the latter error, if you
    have a signing problem.
    That first error looks like something different,
    perhaps the app is looking for a resource that
    defines rfc822 behaviour.
    Regards,
    Marc

  • Lync 2013 Web App Sharing not working.

    We are having a problem with Lync Web App 2013.  Our external customers can open the meeting link and join the meeting without a problem.  Once they are in the meeting an internal user begins the presentation by sharing his screen.  The Lync
    Web App just says "Loading..." for the external customer.  The internal presenter sees this external customer continually change from "in collaboration session" to "not in collaboration session".  The external customer
    is never actually shown the screen share.
    Other notes:
    -->We tried this from an external wireless hotspot and it worked fine, thus, it seems something in this customer's company firewall that is blocking it.
    -->We also tried sharing a powerpoint (we have a functional office web apps server), which produced the same results.
    -->When we used the Lync 2010 Web App (before we upgraded to 2013), everything seemed to work fine, thus I am concluding that the 2013 Lync Web App (since it has more capabilities) is somehow trying to use more ports or something.
    -->Internally, the Lync Web app works fine.
    So, I assume something in the customer's company's firewall is blocking some access to Lync 2013 Web App.  My question is:  what needs to be enabled both on-premise and at the customer's side to access Lync 2013 Web App screen sharing and if the
    company (for security reasons) doesn't want to open extra ports, is there some work around to force Lync Web App to use port 443 for screen sharing.
    Thanks,
    Adam

    The ports 1024-65535 * are used for application sharing.
    You can configure the port ranges for Lync clients.
    http://technet.microsoft.com/en-us/library/jj204760.aspx
    You can’t use 443 as port 443 is used for HTTPs.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Awk: error while loading shared libraries: libdl.so.2: cannot open shared

    I got the following error
    awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /tmp/install.dir.4681/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    Tuxedo 9.1 base installation complete
    when tried to install Tuxedo 9.1 on unbreakable Linux 5. I am trying to install Peoplesoft.
    I found this error is pretty common, not necessary appear when installing Tuxedo. I am searching around and a lot of people saying to comment out the line
    export LD_ASSUME_KERNEL
    The problem is I don't know which in which file I need to do it. Has anyone have the encountered the similar problem before? Thanks.

    After reading the installation script, I figure out which is the evil file. I just post it here so if someone get into this problem in the future, he can fix it.
    Here is the solution:
    Assume you are at the directory where the install.sh is. Do the following:
    -bash-3.1$ cd linux/sles9/base
    -bash-3.1$ cp tuxedo91_32_SLES_9_x86.bin tuxedo91_32_SLES_9_x86.bin.bak
    -bash-3.1$ cat tuxedo91_32_SLES_9_x86.bin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" >tuxedo91_32_SLES_9_x86.bin
    -bash: tuxedo91_32_SLES_9_x86.bin: Permission denied
    -bash-3.1$ cat tuxedo91_32_SLES_9_x86.bin.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" >tuxedo91_32_SLES_9_x86.bin
    Then run the installation script
    sh install.sh and be happy as I am now!!!!

  • Error while loading shared libraries: libgij.so.7rh

    Hi everyone,
    I just installed jdk1.6.0_06 on red hat linux 5 server, and try to run a simply java class but have the following error message:
    java: error while loading shared libraries: libgij.so.7rh: cannot open shared object file: No such file or directory
    I have added the following into /etc/profile
    export JAVA_HOME=/usr/java/jdk1.6.0_06
    export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
    export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
    Can you kindly indicate the cause for this issue? Thanks a lot.
    Best,
    VovoTsai

    You have GNU Java installed by default on many Linux distributions and this is being picked up ahead of the Sun Java. You can change the PATH declaration to make sure that the Sun Java is found first.
    export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATHI have removed GNU Java from all my Linux installations.

  • Error while loading shared libraries (libstdc++-libc6.1-1.so.2)

    Hi,
    I'm trying to install WL 7.0 on Debian Woody (yeah, I know, not supported, yada,yada)
    and I'm getting the folloing error message:
    bart:/mnt/cdrom/Linux# ./server700_linux-1.bin -mode=console
    Extracting 0%....................................................................................................100%
    /tmp/filezgNpbR/jdk131_03/bin/i386/native_threads/java: error while loading shared
    libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file
    or directory
    ** Error during execution, error code = 32512.
    Anybody out there had this problem? Thank you for your help!
    Dan

    Solved. I did a
    bart:/usr/lib# ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2
    and it took care.... linking directly to a specific version=bad habit, IMHO.
    "Dan" <[email protected]> wrote:
    >
    Hi,
    I'm trying to install WL 7.0 on Debian Woody (yeah, I know, not supported,
    yada,yada)
    and I'm getting the folloing error message:
    bart:/mnt/cdrom/Linux# ./server700_linux-1.bin -mode=console
    Extracting 0%....................................................................................................100%
    /tmp/filezgNpbR/jdk131_03/bin/i386/native_threads/java: error while loading
    shared
    libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file:
    No such file
    or directory
    ** Error during execution, error code = 32512.
    Anybody out there had this problem? Thank you for your help!
    Dan

  • Gentoo installation: error while loading shared libraries

    Hello,
    I am trying to install Free JSP editor on Gentoo with 2.6 kernel. I get errors about loading shared libaries (full output below). I am almost sure that it is caused by LD_ASSUME_KERNEL=2.2.5 in install script but i dunno how to prevent it from exporting this variable? If i try to 'hack' it i do not get correct checksum and installation exits.
    Preparing to install...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...
    awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    Launching installer...
    grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
    /opt/sun-jdk-1.4.2.07/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

    Try changing LD_ASSUME_KERNEL inside the installer binary to something else (LD_ASUSME_KERNEL for example) by using some binary editor.

Maybe you are looking for