Ask Your Question
0

problems in setting example project in java

asked 2013-10-04 18:00:59 -0600

my problem comes from this tutorial http://docs.opencv.org/trunk/doc/tutorials/introduction/desktop_java/java_dev_intro.html section "SBT project for Java and Scala".

When I run sbt, it throws an exception "no opencv_java246 in java.library.path".

so i type sbt -Djava.library.path=%my_native_library_path% run to set the java library path, it will not throw exception and have desired result.

But I don't want to specify the native java library path every time when I run sbt. Is there a way to assign it at the beginning and use it as a default? Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-10-06 07:29:21 -0600

Maxim Galushka gravatar image

Have a look here, described all possibilities configuring with SBT:

http://stackoverflow.com/questions/10761166/integrating-native-system-libraries-with-sbt

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-04 18:00:59 -0600

Seen: 306 times

Last updated: Oct 06 '13