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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Java and C++

  • 09-04-2002 3: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, Registered Users 2 Posts: 6,660 ✭✭✭Blitzkrieger


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


  • Registered Users, Registered Users 2 Posts: 2,013 ✭✭✭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, Registered Users 2 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