Compile to 64-bit target in Netbeans

1.1k Views Asked by At

I've made a 64-bit application (meaning it uses 64-bit DLLs (OpenCV for Java to be exact)) in Netbeans and using the inherit Run function works fine but if I try to build it and run the jar, it gives me this error

java.lang.UnsatisfiedLinkError: no opencv_java246 in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at org.chimeras1684.ui.operation.NewDriverUI.main(NewDriverUI.java:43)

I've looked around a bit and it seems that the problem is that Netbeans run function builds in 64-bit but the build function builds for 32-bit. Is there a way to force the build to build for 64-bit? Or is the problem something else that I don't see?

0

There are 0 best solutions below