Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Java and C++

Options
  • 09-04-2002 4:24pm
    #1
    Closed Accounts Posts: 536 ✭✭✭


    I'm trying to include a c++ library into my Java application.
    Does anyone know how to do this?


Comments

  • Registered Users Posts: 6,661 ✭✭✭Blitzkrieger


    I'm sure the answer was posted on the boards somewhere before buf ****ed if I can find it :)


  • Registered Users Posts: 1,994 ✭✭✭lynchie


    Have a look at the tutorials on Sun's website on JNI

    JNI Tutorial


  • Closed Accounts Posts: 536 ✭✭✭flyz


    Originally posted by lynchie
    Have a look at the tutorials on Sun's website on JNI

    JNI Tutorial

    Thanks lynchie gave me an idea what to do anyway.

    still having problems though, trying to figure out how to link an existing library to my java code, that tutorial shows you how to create a new one and link it.


    Can you link a .lib or does it have to be a dll??


  • Registered Users Posts: 1,931 ✭✭✭Zab


    You could write your own DLL to wrap around the C++ library. The C++ code would probably be very minimal. I'm sure that tutorial explains how to do it, then its just a matter of writing an interface for the library your using.

    Zab


Advertisement