How to set the java.library.path from Eclipse

后端 未结 16 2418
陌清茗
陌清茗 2020-11-22 05:36

How can I set the java.library.path for a whole Eclipse Project? I\'m using a Java library that relies on OS specific files and need to find a .dll/

16条回答
  •  一向
    一向 (楼主)
    2020-11-22 06:20

    Just add the *.dll files to your c:/windows

    You can get the java.library.path from the follow codes:and then add you dll files under any path of you get

    import java.util.logging.Logger;
    
    public class Test {
    
    
        static Logger logger = Logger.getLogger(Test.class.getName());
        public static void main(String[] args) {
        logger.info(System.getProperty("java.library.path"));
        }
    }
    

提交回复
热议问题