Linux about k8055, java and libraries?

Discussion in 'Software' started by alpaca, 4 Sep 2010.

  1. alpaca

    alpaca llama eats dremel

    Joined:
    27 Jan 2009
    Posts:
    1,132
    Likes Received:
    45
    hey,

    i'm trying to write a program in java that is able to talk to a velleman k8055. i found a library on line, and a demo command line tool, but only written in C++.

    i can load the library in java with
    Code:
    static { system.loadlibrary("k8055") } 
    just fine, but when i try to invoke a method from the libk8055.so, i get an UnsatisfiedLinkError.

    in my search trough the interwebs i always come out to this Java Native Interface. but i only manage to find examples in which you have modify the C++ code to suit your program, not the other way around.
    and what is a header file? what does it do, and more important: where do i need it?

    my clue is lost somewhere under my desk and i can't find it anymore...
    thanx in advance
     
  2. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    I played around with the velleman kit too at school. There was a OSS implementation that just worked with basic CLI commands... I wrote a PHP wrapper around it and I could control it from a webpage...

    About the header file, read up C coding... You'll get the point... Shame they don't teach decent languages anymore at school...
     

Share This Page