无法加载库。理由:[java.library.path中没有jansi

时间:2017-12-27 16:29:30

标签: java maven java-ee dll jansi

嗨,大家好我最近在做" mvn clean install"对于我的项目 请有人帮帮我,

这是我面临的错误。

无法加载库。理由:[java.library.path中没有jansi,本机库C:\ Users \ apple \ AppData \ Local \ Temp \ jansi-64.dll已经加载到另一个类加载器中]

详细说明:

  

java.lang.UnsatisfiedLinkError:无法加载库。理由:[没有   jansi in java.library.path,Native Library   已加载C:\ Users \ ypava \ AppData \ Local \ Temp \ jansi-64.dll   另一个类加载器]   org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:184)at at   org.fusesource.hawtjni.runtime.Library.load(Library.java:142)at   org.fusesource.jansi.internal.Kernel32。(Kernel32.java:37)at   org.fusesource.jansi.WindowsAnsiOutputStream。(WindowsAnsiOutputStream.java:52)     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native   方法)at   sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown   来自java.lang.reflect.Constructor.newInstance(未知来源)     在   org.apache.logging.log4j.core.appender.ConsoleAppender.getOutputStream(ConsoleAppender.java:245)     在   org.apache.logging.log4j.core.appender.ConsoleAppender.getDefaultManager(ConsoleAppender.java:208)     在   org.apache.logging.log4j.core.appender.ConsoleAppender.createDefaultAppenderForLayout(ConsoleAppender.java:154)     在   org.apache.logging.log4j.core.config.AbstractConfiguration.setToDefault(AbstractConfiguration.java:571)     在   org.apache.logging.log4j.core.config.DefaultConfiguration。(DefaultConfiguration.java:47)     在   org.apache.logging.log4j.core.LoggerContext。(LoggerContext.java:81)     在   org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.createContext(ClassLoaderContextSelector.java:171)     在   org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.locateContext(ClassLoaderContextSelector.java:145)     在   org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:70)     在   org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.getContext(ClassLoaderContextSelector.java:57)     在   org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:147)     在   org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)     在   org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)     在org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)     在   com.disney.wdat.api.roompricing.facade.impl.WDWSeasonalPriceDAOFacadeImpl。(WDWSeasonalPriceDAOFacadeImpl.java:21)     at java.lang.Class.forName0(Native Method)at   java.lang.Class.forName(未知来源)at   javassist.runtime.Desc.getClassObject(Desc.java:43)at   javassist.runtime.Desc.getClassType(Desc.java:152)at   javassist.runtime.Desc.getType(Desc.java:122)at   javassist.runtime.Desc.getType(Desc.java:78)at   com.disney.wdat.api.roompricing.facade.impl.WDWSeasonalPriceDAOFacadeImplTest.setup(WDWSeasonalPriceDAOFacadeImplTest.java:37)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)at   sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)at   java.lang.reflect.Method.invoke(未知来源)at   org.junit.internal.runners.MethodRoadie.runBefores(MethodRoadie.java:133)     在   org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:96)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl $ PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:310)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl $ PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:131)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl $ PowerMockJUnit47MethodRunner.access 100 $(PowerMockJUnit47RunnerDelegateImpl.java:59)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl $ PowerMockJUnit47MethodRunner $ TestExecutorStatement.evaluate(PowerMockJUnit47RunnerDelegateImpl.java:147)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl $ PowerMockJUnit47MethodRunner.evaluateStatement(PowerMockJUnit47RunnerDelegateImpl.java:107)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl $ PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:82)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl $ PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:298)     在   org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:87)     在org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:50)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:218)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:160)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl $ 1.run(PowerMockJUnit44RunnerDelegateImpl.java:134)     在   org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)     在   org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)     在   org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:136)     在   org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:121)     在   org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:57)     在   org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)     在   org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)     在   org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)     在   org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:539)     在   org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:761)     在   org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:461)     在   org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:207)

0 个答案:

没有答案