Results 1 to 7 of 7

Thread: dll

  1. #1
    mot23 is offline Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    0

    Default dll

    Hello everybody,

    I'm writing a java netive interface for 2 weaks now and i have a question.
    I have a piece of cod that will not compile!

    When I tray te compile I get the error: can not find symbol

    I'm writing the cod for using an interfaceboard. The function 'request' is for making comunication with te interface board. I think that something is wrong with this peace. The cod is standing here:

    class ECoSControl {
    private native void print();
    public static void main(String[] args) {
    new request(1, view);
    new release(1, view);
    new set(1, go);
    }
    static {
    System.loadLibrary("ECoSControl");
    }
    }

    Is there somebody who know the problem?


    tom

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    10

    Default

    Make sure you import all the classes that your code is dependent on and you make them available on the classpath during compilation and execution.

  3. #3
    mot23 is offline Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    0

    Default

    Hallo,

    Thanks for your reaction!
    What do you exactly main, can you please better explain of give a example in my script???

    tom

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    10

    Default

    An example? Let's say there is a class called request (bad name for a class BTW better would have been Request), let's further say that the class is in a package called the requestpackage.
    The class ECoSControl which uses the request class should have a line that says
    Java Code:
    import requestpackage.request;
    before the class declaration.
    Of course if you still don't understand all this you should get Oracle's Java tutorial and read it from page 1.

  5. #5
    mot23 is offline Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    0

    Default

    hallo,

    thanks for information,
    I think that I know what you mean,

    tom

  6. #6
    mot23 is offline Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    0

    Default

    Hallo everybody,

    I stil have a question about it, the information about "riquest" is still standing in de .Dll, or not?????

    tom

  7. #7
    mot23 is offline Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    0

    Default

    let me tell you my situation:

    I have a interfaceboard, and i want te write a java program te make them work.
    I have a .dll file, and a minual who say what i have te say to the dll file.
    For example: making conection. That can with te function Request(1, view)

    The problem is now, i have te write a Java netive interface to talk to mij dll, or not??

    This is the way i have to walk, or not?

    tom

Posting Permissions

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