Pick up native JNI files in Maven test (lwjgl)

后端 未结 3 1434
时光说笑
时光说笑 2021-01-01 02:08

I\'m creating a program with LWJGL and Maven, and I\'m writing unit tests for the graphical code. My problem is getting Maven to put the native binaries on the classpath so

3条回答
  •  没有蜡笔的小新
    2021-01-01 02:49

    Does surefire configuration include setting java library path

    For example:

    
        org.apache.maven.plugins
        maven-surefire-plugin
        
          
            
              java.library.path
              target/lib/natives/
            
          
        
      
    

提交回复
热议问题