Unsatisfied link when callind dll from run method Help Please?

Hi,
I get an unsatisfied link error while trying to calling a dll at a certain time period in a run method. The same dll works fine called in another setup and even called in a loop.
Can anyone help please?
import java.util.Timer;
import java.util.TimerTask;
* Schedule a task that executes once every second.
public class TimeRetrieve {
    Timer timer;
    public TimeRetrieve() {
             timer = new Timer();
        timer.schedule(new RemindTask(),
                    0,        //initial delay
                    1*1000);  //subsequent rate
    class RemindTask extends TimerTask
       String string_A;
       double d1;
     double d2;
     double d3;
     double d4;
     double d5;
     double d6;
     double d7;
     double d8;
     int numIter = 3;
     int start = 1;
        public void run()
              if (numIter > 0) {
              cinterface(start, string_A, d1, d2, d3, d4, d5, d6, d7, d8 );
          System.out.println("In Java action performed start button, after call to dll  \n");
          System.out.println("   string_A =  :" +string_A );
          System.out.println("doubles , \t  d1  \t d2  \t  d3  \t d4 \t d5 \t d6 \t d7 \t d8");
          System.out.println(d1 +"\t" +d2+"\t"+d3+"\t"+d4+"\t"+d5+"\t"+d6+"\t"+d7+"\t"+d8);
          numIter--;
             } else
             System.out.println("End Looping!");
                System.exit
             System.exit(0);  
    public static void main(String args[]) {
               System.out.println("Starting Data Retrieval.");
             new TimeRetrieve();
// Load shared library which contains implementation of native methods
                public native void cinterface(int start, String string_A, double d1, double d2, double d3, double d4,
                double d5, double d6, double d7, double d8 );
                static
                      try
                           System.out.println ("load cinterface"); //unsatisfied link
                           System.loadLibrary("cinterface");
                      catch (UnsatisfiedLinkError ee)
                           System.out.println
                                ("Caught unsatisfied link error for dlls" );
                           System.out.println
                                ("get local msg = " + ee.getLocalizedMessage() );
                           System.out.println ("getMessage " + ee.getMessage() );
                               // System.out.println ("print Stack Trace " +ee.printStackTrace() );

My mistake! I found it. Had some wrong names.

Similar Messages

  • Is it possible to throw an exception from run method of a thread?

    Is it possible to throw an exception from "run method of a thread"(implemented as runnable implementation)?
    Is it advisable to do so?

    Is it possible to throw an exception from "run method
    of a thread"(implemented as runnable
    implementation)?Yes, an unchecked one. Runtime exceptions.
    Is it advisable to do so?If you mess up it happens automatically. But basically: no.

  • I tried to uninstall itunes and appropriate apple products on my computer.  It will not let me uninstall message I keep getting is"THE PROCEDURE ENTRY POINT_OBJC_INIT_IMAGE COULD NOT BE LOCATED IN THE DYNAMIC LINK LIBRARY OBJ.DLL.  CAN ANYONE HELP?

    I tried to update Itunes on my desktop computer and for some reason it did not work properly.  I am receiving the following message:
    "the procedure entry point_objec_ init_image could not be locaed in the dynamic link library objc.dll.  can you help?

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Premiere Pro crashes when i start it up. Help please :-)

    Premiere Pro crashes when i start it up. Help please :-)

    Go to Adobe Premiere Pro CC error on start and answer all the questions I posted in reply #1

  • Hi! I have an account from UK and I want to switch to the US, I can't because I still have Pounds 0,65 left! I can't buy any app because it is not enough credit & I cant add an american credit card either. I don't have credit cards from UK. HELP please!!

    Hi! I have an account from UK and I want to switch to the US.
    I can't because I still have Pounds 0,65 left!
    I can't buy any app because it's not enough credit but I can't add an american credit card either. I don't have credit cards from UK. HELP please!!
    I want an account from the US since my credit card is american.
    Thank you!

    Contact iTunes support in the UK and request that they zero out your account so that you can change the country in your account.

  • Photoshop elements 12 do not open nef files from Nikon D610 , help please

    photoshop elements 12 won't  open nef files from Nikon D610 , I have to use DNG converter to openfiles on my elements 12, help please
    Thank you
    Ptrebor
    [email protected]

    Thank you,
    First I cannot find how to see what version is my Camera Raw, please give
    me a hint on that.
    Secondly,  I am using Windows 7 .
    Thanks again,
    Ptrebor
    2014-12-13 17:34 GMT-05:00 R_Kelly <[email protected]>:
        photoshop elements 12 do not open nef files from Nikon D610 , help
    please  created by R_Kelly <https://forums.adobe.com/people/R_Kelly> in *Photoshop
    Elements* - View the full discussion
    <https://forums.adobe.com/message/7012253#7012253>

  • Reset phone to factory settings to remove unwanted email addresses from autofilling.  Now trying to only sync real contacts, photos, and apps from backup.  HELP PLEASE!  :)

    Reset phone to factory settings to remove unwanted email addresses from autofilling.  Now trying to only sync real contacts, photos, and apps from backup.  HELP PLEASE! 

    All of this should be on your computer as you should be syncing regularly to your computer.. Just sync it back.
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • Changing fields from run() method

    I have some threads in my program. There is one which in his run() method changes field of other class, my problem is that the change appears with some dealay. In my opinion the delay is to long. Is there any way to make it faster??
    Thanks for reply.
    Greg.

    I think can... u can set the timeslice of the thread to run faster... try looking it here...
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html
    Hope it helps!

  • My videos stuck in workspace but runs good when exported ... need a help please

    my videos stuck in workspace but runs good when exported ... need a help please

    Hello,
    My video slows down in my workspace but runs in normal speed when exported

  • Rotating knob from AS2 -- AS3 help please

    I'm trying to create a rotating knob that a User can turn
    with the mouse. The initial code worked in AS2 but the rest of my
    project is in AS3. so I started to convert it over (with help) Can
    anybody help make it work in AS3?
    I'm sure the "update Advent" is incorrect. also i would like
    to have the knob only able to rotate 180 deg from initial position.
    I'm thinking i need to fid the initial x,y position and the final
    x, y position and use those as bounderies but not sure if there is
    a way to do it with rotation<180 type of thing. thank you in
    advance for any help, or direction.

    kglad
    can you help me with something so simple that im embarrised
    to mention it :) i can't figure out what i'm doing wrong i have a
    button in a child movie clip and im trying to control another movie
    movie clip, that is also a child of the same main moive clip with
    no luck, i use the "insert target path" but when i try to run test
    the flash it gives me a error " the Toggle_up button was clicked
    TypeError: Error #1010: A term is undefined and has no
    properties.
    at controlpanel_demo_fla::Switch_Air_18/clickButton()"
    any ideas sorry to bother you again

  • I uninstalled older version of Itunes because for some reason it wouldn't start. I installed new version 10.7 for 64 bit (windows 7) and it WONT RUN either. help please

    I couldn't get my 10.6 version of Itunes to open, so I uninstalled it. Installed newer version 10.7 for 64 bit (windows 7) and it won't run either. Please help?

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Pple Application Suport isrequired to run itunes helper.Please uninstall itunes then installagain.  Error 2  Please help

    Apple Application Suport was not found.
    Apple Application Support is required to run itunesHelper.
    Please uninstall itunes then install again.
    Error2         Please help i did everything and still have the same problem

    With the Error 2, let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/download.htm
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • JNI Unsatisfied Link Error at Runtime on Native method

    I wnat USe C functionality In My Java Program so that I Use JNI.In My Java Program i use dll file of c program using System.load("");.when iam compiling my Java Program it works Fine But When Iam Run My Java Program It Displays Unsatisfied Lik Error on Native method oh C Program.

    RAGHUKUMAR_KOLIKINENI wrote:
    I wnat USe C functionality In My Java Program so that I Use JNI.In My Java Program i use dll file of c program using System.load("");.when iam compiling my Java Program it works Fine But When Iam Run My Java Program It Displays Unsatisfied Lik Error on Native method oh C Program.As noted that requires a resolvable path - either it must be absolute or relative to the current working directory.
    However if you failed to load the library then you cannot get the error that you posted unless you are ignoring the exception from the load() call. And doing that is a bad idea.
    At least if the library is not loading.
    If it is loading then the method that you use to load it has nothing to do with your problem.

  • JNI : Unsatisfied Link Error using C++ from Java

    Am using JNI to call a C Function which in turn creates a new C++ object and calls a method on it.
    When I run the java program that calls this native method, I get a UnsatisfiedLinkError : No <lib> in java.library.path.
    If I change the C function to do a simple printf instead of creating a new object , it works fine.
    I am printng out the java.library.path before calling the loadLibrary method, the path is correct.
    Am using Java 1.2.2 and compiling with gcc 2.7 on solaris 2.6 (Sun OS 5.6)
    Any help would be appreciated. I have seen some other folks having similar problems but haven't seen any replies that seem to solve the problem.

    Thanks for the ldd suggestion :
    This is the output from ldd
    ldd -sir liba.so
    find library=./liba.so; required by /usr/lib/lddstub
    find library=libe.so; required by ./liba.so
    search path=/user/ajax/jni (LD_LIBRARY_PATH)
    trying path=/user/ajax/jni/libe.so
    libe.so => /user/ajax/jni/libe.so
    symbol not found: strcpy (/user/ajax/jni/libe.so)
    symbol not found: strcpy (/user/ajax/jni/libe.so)
    symbol not found: printf (/user/ajax/jni/libe.so)
    symbol not found: printf (/user/ajax/jni/libe.so)
    symbol not found: __builtin_new (/user/ajax/jni/libe.so)
    symbol not found: printf (/user/ajax/jni/libe.so)
    init library=/user/ajax/jni/libe.so
    init library=./liba.so
    libe.so is in the LD_LIBRARY_PATH
    The 'man' pages for ldd say this :
    Using the -d or -r option with shared objects can give misleading results. ldd does a "worst case" analysis of the shared objects. However, in practice some or all of the symbols reported as unresolved can be resolved by the executable file referencing the shared object.
    Most of them seem ok, but I am wondering about "__builtin_new", anyone know what shared lib that's supposed to be in ?

  • Broken links when PDF'ing from Structured Framemaker 8.0 in Windows XP

    We have a large number of links in our documents that are created using structured Framemaker 8.0 in a Windows XP environment. The xrefs work fine in FM, but once they have been PDF'd all of the links are broken. Since these are large documents, it can take over a day to relink everything.  All links are created using the fm-xref tag and link to other topics/items within the FM book.
    Any suggestions for what may be the problem?
    I am also posting this in the Framemaker forum.

    The Set Destination option isn't working for us either.
    This is what we are seeing:
    In our source doc, a cross-reference is created using the fm-xref structured tag. At that point the cross-reference works. We create a series of topics using cross-references the same way.
    These topics are assembled into ditamaps.  The cross-references are still working.
    A book is then created and all ditamaps are created as chapters within the book.
    At this point, the fm-xrefs stop working. In some cases, they were converted to xrefs instead of retaining the fm-xref tag. At this point, some of the formatting is ignored.  For example, an example tag that looks lovely in the left column, suddenly becomes a Heading 1 which is a chapter heading.
    Needless to say, the frustration level is very high.  I would attach, but it appears that .fm or book files are not an acceptable file type.
    Please help us. It may be something terribly simple, that we just can't see anymore because we're cross-eyed from troubleshooting.
    We love FM and would like to continue to use it, but not if it causes this type of frustration. In fact, we're considering becoming nurses.

Maybe you are looking for