1

I have some code files need to make a dll file. it is used by java loadlibrary(). how do I do?

g++ -m64 -c -O3 -I "C:\Program Files\Java\jdk-10.0.2\include" -I "C:\Program Files\Java\jdk-10.0.2\include\win32" chinesechess_database_Database.c myjni_Utilities.c

2
  • 1
    unpack it from your jar file, save it somewhere, then load it. Annoying, but, that's the way. Commented Dec 12, 2023 at 4:16
  • Are you asking how to build a DLL or how to package it in a Java application?
    – aled
    Commented Dec 12, 2023 at 11:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.