Hi,

integration of native libs in the netbeans platform works fine for windows, 
linux, 32bit, 64bit 
etc. as described in 

http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/
api.html#jni

Selection of the needed platform dependend native libs is based on the 
environment 
variables  

os.name
 
which is set to values like "windows 8", "windows 10", ...

and if I want to support more than one windows versions with my platform app, I 
have to 
duplicate my native libs into several sub folder of e.g

modules/lib/amd64/windows 8

modules/lib/amd64/windows 10

although for all windows os I want to integrate the same libs.

The search code which looks for the libs is implemented in the Bootstrap module 
in the class 
StandardModule in the method findLibrary.

I want to propose some simple lines of code to add in this method which 
additional search in 
the the folder

modules/lib/<arch>/windows for the native libs

if the value of the environment variable os.name starts with "windows" but the 
libs are not 
found in the folder modules/lib/<arch>/<os.name>

Does it make sense for you? Any better ideas to solve the problem?

best regards
Oliver

Reply via email to