Loading native resources

Hello,
I'm using the JNI invocation interface to start JavaVM from C. I want to start a java application which loads a native resource using the System.load command. Unfortunately, the java app doesn't seem to load the resources although the app loads the resources correct when starting with ecplise. I'm new to JNI so I'm very grateful for some help.

Java in JNI works the same as in Java.
If it fails to load the resource then either the java (what you call in JNI) is wrong or your JNI code is wrong.
Generally it is easier to write code in java to do anything more than trivial stuff versus trying to replicate it in JNI. So write a method that does what you want and call it.
...although the app loads the resources correct when starting with ecplise. That is always an environment problem. Eclipse has an environment. Outside Eclipse has an environment. If they are not the same then problems can occur.

Similar Messages

  • Problems with loading native library/missing methods:no ttJdbcCS in java.li

    Iam facing one problem while connecting the timesten client to the server The SQL Exception which Iam getting is pasted below:-
    Problems with loading native library/missing methods: no ttJdbcCS in java.library.path
    I am working with MAC OS X 10.7.2 and my timesten client version is 11.2.1.0
    I have also changed the Java Preferences from 64-bit to 32-bit but still whenever i tried to connect with the SQL Developer it gives me the above error.

    I just tried this out. My environment is OS X 10.7.4, Timesten (32-bit) client 11.2.1.9.0, SQL Developer 3.1.07, Oracle Java 1.7.0_04.
    The key things you need to be sure to do (in a terminal window) are:
    1. Be sure to . in the TimesTen environment script <tt_install_dir>/bin/ttenv.sh to set the full TT environment.
    2. Change directory to SQLDeveloper.app/Contents/Resources/sqldeveloper
    3. Run 'sh sqldeveloper.sh -J-d32'
    and all should be fine.
    Note that if you are using Java7 as I am then there is a step 1a. Change the CLASSPATH environment variable to specify ttjdbc6.jar not ttjdbc5.jar. For some reason running the app directly from Finder does not work even if you add -J-d32 into the sqldeveloper launch script. I'm still looking into that.
    Chris

  • An Error Message when loading a Resource.properties File

    Hi, all:
    I tried to load a Resources.properties file in a JSP page:
    <%@ page import="java.util.*" %>
    <%
    ResourceBundle rb = null;
    try {
    rb = ResourceBundle.getBundle("Resources");
    } catch (MissingResourceException e) {
    rb = null;
    throw new RuntimeException("The resource is missing!");
    %>
    Test
    When I run it, I got the following error message:
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from fulfilling the request.
    Any ideas what's going on here?
    Thanks
    Jeff

    Hi,
    I had a similar error just a few days ago. I could solve it by replicating the datasources again and activating the transfer structures via rs_transtru_activate_all. After that the load went fine.
    regards
    Siggi

  • How to Load the Resource Master for Generic Resources by Department?

    We are using P6 enterprise version in our company having a central database.
    Q1a.) We set the Activities view > Resource Usage Spreadsheet > Select View 1) By Resource OR 2) By Role.
    The result is the spreadsheet presents the Remaining Early Units by Resource OR by Role. Other spreadsheets behave the same way. Is it possible to view the total Remaining Early Units and not have it separated by Resource OR Role?
    Q1b.) We would like to find out the recommended structure to load Generic Resources (ie. professional and trades such as Civil Engineer, Mechanical Engineer, Carpenter, Welder etc.) for each Department (ie. 8221, 9362, 8524 etc.) into the Resource Library. Example: we would like to load Civil Engineer once for departments 8221, 9362, 8524, load Welder once for departments 9362, 8524, etc.
    We contacted Primavera Support and they pointed us to use Roles.
    Thank-you for any suggestions you may have.

    i think you could try to model it like this:
    - define a single "mech eng" role in the role tree (not too deep or even a flat list). no dept's mentioned here. keep the role tree strictly "speciality" oriented or anyway according to their technical classification.
    Role ID     Role Name
    Engr     Engineer
    .......Engr.SE     Structural Engineer
    .......Engr.EE     Electrical Engineer
    .......Engr.ME     Mechanical Engineer
    - define any number of resources (either individuals, or teams or even a combination of the two) in the resuorce tree.
    1 eng with a capacity of 8h/d, a fixed formation (team) regardless of the number of individuals would still have a capacity of 8h/d if they can only accomplish tasks together. if assigning a team of 5 means means faster for fixed workload or more for fixed duration then define a fixed team (again if this is the case) as a single resource with a capacity of 40h/d or simply define and assign the required number of individual eng's 8h/d max each. use activity duration type to switch between duration driving and non-driving resource usage.
    e.g.
    Resource ID     Resource Name     Resource Type     Default Units / Time     Max Units/Time     Primary Role     Roles
    .......*ElecEng     Electrical Engineers*     Labor     20.00h/d     20.00h/d     Electrical Engineer     Electrical Engineer
    ..............EE1BARBW     Barb Wire, Senior Electrical Engineer     Labor     10.00h/d     10.00h/d     Electrical Engineer     Electrical Engineer, Project AQ
    ..............EE2BILLS     Bill Sanders, Junior Electrical Engineer     Labor     10.00h/d     10.00h/d     Electrical Engineer     Electrical Engineer, Consultant
    .......*MechEng     Mechanical Engineers*     Labor     10.00h/d     0.00h/d     Mechanical Engineer     Mechanical Engineer
    ..............MechEng T1     mech eng team 1     Labor     8.00h/d     8.00h/d     Mechanical Engineer     Mechanical Engineer
    ..............MechEng T2     mech eng team 1     Labor     16.00h/d     16.00h/d     Mechanical Engineer     Mechanical Engineer
    .....................MechEng T2.1     ME 2.1     Labor     8.00h/d     8.00h/d     Mechanical Engineer     Mechanical Engineer, Consultant
    .....................MechEng T2.2     ME 2.2     Labor     8.00h/d     8.00h/d     Mechanical Engineer     Mechanical Engineer
    - create the necessary res to role associations. one employee or team (i.e. res) can be linked to one primary qualification and several other proffesions or specialities (i.e. roles)     
    - when assigning to activities, if a particular individual/ team is required assign directly the res. select several activities requiring mech eng, select 1 or several mech eng's and assign them (use resource security to limit user's access to certain res nodes).
    - if any res with a particular role can perform the task, assign the role. later on if you decide for a res, you can assign a particular resource through the previously assigned role. decide applicable rates and h/d between role and res.
    - you can track allocation in spreadsheets and histograms by resource or role (or by activity for both). if individual res have clear capacities, for roles you can chose between custon role limits (manual) and system calculated for each role based on res having that as primary qualification (user pref)
    - you can report by activity / WBS / project / portfolio (tracking)
    - solve over-allocation by levelling, by switching between res for the same role, etc
    - optimise duration vs. load and/or # of res/roles (and viceversa)
    Edited by: Tibi on Oct 9, 2009 9:40 PM
    Edited by: Tibi on Oct 9, 2009 9:59 PM

  • Error ocurred during initialization of VM. Unable to load native library...

    Hi,
    I´m trying to install Oracle 9i on a PC with Suse 9.2.
    when I put the first CD it comes with this error:
    Initializing Java Virtual Machine from /tmp/OraInstall2006-05-04_11-13-11PM/jre/bin/java. Please wait...
    Error occurred during initialization of VM
    Unable to load native library: /tmp/OraInstall2006-05-04_11-13-11PM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
    I´ve seen that there was a similar issue in 2004 and I´ve trying to do what it says but it didn´t work this time.
    Unable to load native library:
    Could everyone help me to install Oracle??? I´ve been trying it for a few days and doesn´t work.
    Regards,

    I had same problems long time ago. Ok, I try to remember.
    First I read the recommandation. You need a special GLIBC-Library to support the JAVA 1.1.8 runtime environment.
    Some of the Oracle9i tools are compiled with gcc 2.95 compiler.
    You may need ”gcc_old for SLES9” for linking of those tools.
    gcc_old-2.95.3-175.2.i586.rpm is included in SLES 9 SP2 CD1
    For Suse you can obtain a package called orarun. You will get further support for installing, starting and stopping ORACLE. Please look at http://ftp.novell.com/partners/oracle/docs/9205_sles9_install.pdf.
    Good luck.

  • Problem with loading native library in java version "1.5.0_05"

    My application uses a native coded drawing. With java version 1.4.xx it was working just fine but with java 1.5.xx it gives the following error at the time of loading native library:
    java.lang.UnsatisfiedLinkError: /home/abyzov/tmp/friend32-1.6.02/libfriend.so:
    /home/abyzov/tmp/friend32-1.6.02/libfriend.so: undefined symbol: XtWindowToWidget
    I assumed that java loads all necessary X-libraries at start up but it seems to be not true for version 1.5.xx. Does anybody now about this kind of problems? Should I report it as a bug?

    I have this exact same problem. I developed an application all along using 1.4.2_08 to be exact no problems. I was forced to switch to 1.5.0_06, now when I try to run the app I get:
    java.lang.UnsatisfiedLinkError: <path to library>/libcomlib.so: <path to library>/libcomlib.so: undefined symbol: yp_get_default_domain
    I have tried compiling it in both 1.4.2_8 and 1.5.0_06 and it compiles perfectly but when I run with 1.5.0_06 it messes up.
    If you found the problem with this or anyone else has any advice please let me know.

  • Help!  FCP X freezes at loading compressor resources

    I purchased compressor 4 and it is installed in my applications folder.  I went to restart FCP X and the splash screen for FCP X stays on the screen saying "loading compressor resources" and won't go away.  I can quit the program via Command-Q, but am unable to do anything else.  I have rebooted, wiped .plist files, but no luck...any ideas?

    I have FCP7 installed.  If that is the problem, then I am stuck with it for now.  I have a huge amount of legacy projects, which I need to keep. 
    It is such a strange error, because everything seems to load, the elements and projects are all showing and just at the end it seems to lose contact with the external hard drive, which is a WD firewire 800.  It actually still has a hold on it, because I can't dismount it at that point, because it says it is in use by FCPX.  I haven't tried to see if I connect it with usb the problem might go away, although I saw that as a suggestion. 
    Actually in its latest reincarnation, FCPX doesn't hang, it just says there are no projects or elements because the hard drive has disappeared from its list.  It sometimes works to then force quit fcpx, and tell it not to save the window settings and then restart it.  It seems almost random as to if it loads properly or not.  Doesn't matter if I am running 10.6.8 or 10.7. whatever.  It is not so uncommon a problem, because there are a lot of posts about it.  I haven't found the definitive post with a fix though.
    I am now thinking of duplicating the project to a differnt external drive and then dismounting the external drive I have been using. 

  • Reconciliation / Load from Resource

    Hey all,
    I have two LDAP resources.
    LDAP1 I can reconcile OK
    LDAP2 reconciles and IDM accounts created but all the users are deleted from the resource, the same is true if use the 'Load from resource' option.
    Both are using identical per-account workflows, userform etc.
    Any ideas out there gratefully received.
    Phil

    Hi boomers,
    I have similer requirement. If you have done it. Please throw some light on it.

  • "Error loading native JDBC driver library" received when connecting to a DB

    I recently installed 10g client onto my PC. After installation I now recieve an "Error loading native JDBC driver library" error when attempting to connect to a database.
    This is a dual core Dell loaded with XP sp 2. I am attempting to connect to a 10gR2 instance. I tried the solution mentioned in another post to no avail. I am using SQL Developer v 1.2.1 build main-32.13.

    Hi,
    I found this thread from googling and am having the same problem for four days now...
    For those who can get SQL Developer to work, could you please detail what properties you have in your installation? Could you please describe what we are supposed to see in the SQL Developer Properties tab? I found this tab in Help>About>Properties but have no idea where SQL Developer picks up those attributes. And it does not seem we can change any of them within SQL Developer. How frustrating!
    Even more frustrating is that I am able to access the database I want to connect to with SQL Plus (right click on the connect node in SQL Developer)...
    Thanks,
    Clueless

  • Problem in loading Native libraries

    While trying to load native libraries I'm getting the following error message
    java.lang.UnsatisfiedLinkError: /XXX/XXX/libMySharedObj.so: ld.so.1: <JAVA_HOME>/bin/sparcv9/java: fatal: libskgxp10.so: open failed: No such file or directory
    At which place the 'libskgxp10.so' file should present and from where I can get a copy of the same?
    I'm using webLogic 8.15 on a solaris(5.8) box. The JVM has been started in 64bit mode with the options JAVA_VM="-server" and JAVA_OPTIONS="-d64" in the 'startWebLogic.sh' script.
    Any idea to fix this issue?

    Suspecting the same, I've tried to run the application in the same machine where the shared object has been created.
    This time I got the error message as
    java.lang.UnsatisfiedLinkError: /XXX/XXX/libMySharedObj.so: ld.so.1: <JAVA_HOME>/bin/java: fatal: /XXX/XXX/libMySharedObj.so: wrong ELF class: ELFCLASS64.
    I have created the native library 'libMySharedObj.so' by the following way
    gcc -c xxx.c
    gcc -c yyy.c
    gcc -c zzz.c
    ld -G xxx.o yyy.o zzz.o -o libMySharedObj.so -lm -lc -lpthreadPlease advice if I'm taking the wrong track somewhere or with any alternative approach.

  • Weblogic 8.1.6 Unable to load native library: libjvm.so

    hi,
    i have installed weblogic 8.1 SP6 on my box and when im trying to deploy new application i get errors comaplining about some java libraries.
    when i link them to the /usr/lib directory it's working but it's not a solution couse i need also weblogic 9.2 server running on that box.
    i tried to export LD_LIBRARY_PATH with path to the jdk142 that was installed with weblogic server by myself but also without any success.
    i checked commEnv.sh file and found that path to java libraries are not set properly. added those paths to the LD_LIBRARY_PATH but after running WLS when i try to echo ${LD_LIBRARY_PATH} i get no results.
    maybe someone had such problems, and knows how to resolv them.
    my system is Debian Linux/stable
    WL_HOME=/home/bea/bea/weblogic81
    JAVA_HOME=/home/bea/bea/jdk142_11
    added to commEnv.sh:
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/${JAVA_HOME}/jre/lib:${JAVA_HOME}/jre/lib/i386:${JAVA_HOME}/jre/lib/i386/server:${JAVA_HOME}/jre/lib/i386/client
    thanks
    below is a log for this error:
    CUT HERE
    <Error> <HTTP> <brain> <blsBepi> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'>
    weblogic.servlet.jsp.CompilationException: Compilation of /home/bea/bepi/blsBepiDomain/blsBepi/.wlnotdelete/extract/blsBepi_bepi
    Unable to load native library: libjvm.so: cannot open shared object file: No such file or directory
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:478)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Caused by: java.io.IOException: Compiler failed executable.exec
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:321)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:451)
    ... 13 more
    -- CUT HERE --
    PS. sorry for my english and is this post is not in the place where it sould be ;-)

    SOLUTION:
    set the absolute path to javac in General Section of the configuration
    make sure that you j2sdk1.4.2 is accessible by all uids that managed servers are running at.
    if that wont help try to put your J2SDK in /usr/local/java.
    and reconfigure your administration server.
    i hope that will help you all that have same problems. cheers ;-)

  • Load from Resource in IDM 5.0 SP5

    I have installed IDM 5.0, SP 5, with Sun Java System Application Server 8. I have 2 resources, one LDAP (Sun Directory Server 5.2, SP 3) and one Active Directory.
    I have just completed a 'Load from Resource', and loaded user information from the LDAP resource, which created 43 thousand or so user objects in IDM. I have 2 questions:
    1. The load took a loooong time - 1 day, 4 hours. Is this normal? I am currently loading information for approximately 19 thousand accounts from the AD resource, which looks like it will take a similar amount of time per account (still running at the moment).
    2. Now, when I select the 'Accounts' tab in the admin console when logged in as configurator, the list of accounts never appears. The browser session (mozilla) will die after about 2 minutes. The only way I can view user account information is to select the stop button in the browser immediately after selecting the 'Accounts' tab, and then select the 'Find Users' button on the left hand pane.

    The load of the AD accounts (21,000) has now finished. This took 23 hours!!
    I have analyzed, to some extent, the load process, from the LDAP perspective, and what appears to be happening is:
    1. IDM queries LDAP for the number of account entries defined by the block count (1000 in my case) in the IDM resource definition. I suspect this is being done with an ldapsearch, perhaps with the -x and -S options, as the LDAP log details a query, then a sort on uid EVERY time the 1000 entries are retrieved. This, however, is only a minor part of the issue, as the sort takes about 5 minutes on the LDAP server. This would only account for about 200 minutes of my 1day, 4 hours.
    2. After the block of 1000 is retrieved, IDM seems to go off into limbo for about 1 hour each time, with the appserverDAS process consuming about 30-40% CPU. I have an oracle database for the indexes, and that seems to be pretty relaxed during this time - there is some activity, but not in any real anger like the application server.
    I can't analyze what's going on with the AD load, as I am not the custodian of the AD servers, and prefer to know as little as possible about them ;-)
    I suppose this is not too much of a problem, as I will only performing the 'load from resource' once when we go into production, but I am concerned about the impact of a reconcilliation. I will start one immediately, and respond with itming when it finishes.
    As for the list of users, how can I stop the account list from being the first thing accessed when I select the 'Accounts' tab? I would prefer not to have to import all accounts into a separate org just to facilitate access to the interface.
    BTW - to be consistent with the documentation, shouldn't the references to 'Accounts' within the interface really read 'Users'. As I read the documentation, a 'User' is an IDM object which may (or may not) have resource 'Accounts'. If they are to be referred to as 'Accounts', then the two Users 'Configurator' and 'Administrator' should not appear there, as they do not, by default, have a resource equivalent. Or maybe I'm just a pedant :-)
    Anyway, thanks for any help you can provide.

  • Assign loading / handling resource to location through ABAP program

    Hello Experts,
    I have a requirement where by I have to assign loading / unloading resource to a location through ABAP program. Need to assign the resource in Resources Tab in TP/VS section. Is there any function module or any method available to this?
    Responses highly appreciated. Thanks in advance
    Regards
    Sandeep Patil

    Hi all
       I have the same requirement for the end user.
      Is it a good idea update active Table of ODS behind an ABAP Program Z?, I understood that you can't have log history... and you can't delete request.. because you will not generate this..
      We actually have one ODS that contain invoices... all the fields that contain the invoice..like material, vendor, etc.. was updated according to ABAp programa that we specify on start routine, each time that we need to update these fields we need to unload fros ODS to PSA and load again with dtp...
      Let me copy more details:
    Actually, we have an DSO that is updated each week, we load the information into different PSA, all of this PSA pass to ODS for one info source and transformation rule, in this transformation rule we have an ABAP rotine that have some validation and assign some values for different fields.
    In this procees everthing look fine, actually If we need to update this information from DSO (that was loaded and the user need to update some fields) we need to download information from DSO to PSA and load again with DTP process, this was fine.
    Actually the user want that this kind of changes will be apply on line, this mean that for example all the invoices that I have actually loaded into DSO need to be analyzed and update according new parameters that they specify in other tables.
    The DSO is standard, and contain three basis tables, active, delta, modified.
    My question is: Is it possible update directly table of active records of DSO with one Z program?? is it a good idea?, We want to discard the option of unload and load information each time that they need to update certain field that are calculated or updated whit the transformation rule or load.
    Than you for your help.

  • HT1199 I have an Apple MacBook Pro 1,1 Mac OS X 10.6.8. I have tried to load Native Instruments Guitar Rig 4LE. It would not load and said the following. System extension cannot be used.

    I have an Apple MacBook Pro 1,1 Mac OS X 10.6.8. I have tried to load Native Instruments Guitar Rig 4LE.
    It would not load and said the following. System extension cannot be used.
    The system extension "/system/library/Extensions/AppleUSBthernetHost.text" was installed improperly and cannot be used.
    Please try reinstalling it, or contact the product vendor for an update.
    I do not have a copy of the OS X 10.6.8 software. It is second hand so I have no product vendor to contact.
    What can I do?

    You recently updated iTunes to v.11.4? This message has popped up on many a Mac screen when this version was first made available, because this kext was obviously faulty.
    You should try to download iTunes 11.4 again from Apple's website: the new version bears the same name, but this kernel extension has been updated, and the issues it was causing are now a thing of the past.
    Should solve your problem, too...

  • Specified load buffer resource usage is above currently available value

    Hello,
    I am trying to load data into my ASO database. The .mxl and the rules file
    have worked fine on the development machine but now on another PC I get this
    error while executing the .mxl
    Initialize load_buffer with buffer_id 3
    Execution Message:
    Specified load buffer resource usage [1] is above currently available valu [0]
    The outline verifies fine and there is no other data in this ASO database.
    Does this error mean I have to increase the available resources (how?).
    Thanks
    metalray

    Hi,
    There has to be something wrong with your import statement, also I am not sure why you are spooling the same file as writing the import errors as this will overwrite the file.
    Here is an example of a script I just ran and it ran through without any problems.
    spool on to 'C:\Out1.txt';
    login admin  password on localhost;
    alter database 'ASObasic'.'basic' destroy load_buffer with buffer_id 2;
    alter database 'ASObasic'.'basic' initialize load_buffer with buffer_id 2;
    import database 'ASObasic'.'basic' data connect as 'admin' identified by 'password' using server rules_file 'DATA' to load_buffer with buffer_id 2 on error write to 'C:\Out.out';
    import database 'ASObasic'.'basic' data from load_buffer with buffer_id 2 override values;
    logout;
    I would open a maxl window and try pasting in line by line as well.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for