开发者

Eclipse doesn't copy my native libs

开发者 https://www.devze.com 2023-03-20 12:27 出处:网络
I\'m trying to build a plugin that contains some native libraries. The project has the standard maven layout but is currently not configured as a maven project for m2e. (I will do this after eclipse c

I'm trying to build a plugin that contains some native libraries. The project has the standard maven layout but is currently not configured as a maven project for m2e. (I will do this after eclipse can build my plugin)

I put my native libs under src/main/resources and configured eclipse the following way:

build.properties:

开发者_高级运维source.. = src/main/java/
output.. = target/classes/
bin.includes = META-INF/,\
       src/main/resources/libdb_java-5.0.so,\
       src/main/resources/libdb-5.0.so,\
       .

BuildPath:

Eclipse doesn't copy my native libs

But eclipse doesn't copy my native libs from src/main/resources to target/classes. Does anyone know what I'm missing?

Best regards


I think you have to manually add the src/main/resources folder as a class folder to your project under the Libraries tab to have the native libs available at runtime.

For the resulting plugin you should check the exported plugin but i think they should be contained there.

0

精彩评论

暂无评论...
验证码 换一张
取 消