java - Native library build path variables in Eclipse -
i have shared eclipse projects use build path variable relative location jar dependencies. in build path appear variablename/subdirectory/blah.jar
. developers have define 1 variable in workspace , projects build paths work.
the problem of jars require "native library location" set. dlls typically in same location jar in, cannot figure out way use variablename
reference dlls location. relative variable, developers should have set 1 variable instead of grinding out huge user library definition.
in projects' launch configurations can (assuming java application type of run/debug config), in arguments tab, can add line in bottom textarea (vmargs)
-djava.library.path=variablename/subdirectory
assuming jni libs are. variablename can defined through "variables..." (either en env_var if define environment variable or redefining variable "edit...").
Comments
Post a Comment