org.hyperic.sigar.SigarException: no sigar-x86-winnt.dll in java.library.path解决办法

16 [Timer-1] DEBUG Sigar  - no sigar-x86-winnt.dll in java.library.path
org.hyperic.sigar.SigarException: no sigar-x86-winnt.dll in java.library.path
at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:172)
at org.hyperic.sigar.Sigar.<clinit>(Sigar.java:100)
at com.erayt.solar.monitor.util.SigarFactory.getSigar(SigarFactory.java:33)
at com.erayt.solar.monitor.util.SigarFactory.getRealtime(SigarFactory.java:37)
at com.erayt.solar.monitor.host.RealtimeGather.gather(RealtimeGather.java:14)
at com.erayt.solar.monitor.internal.IntervalGatherImpl.gather(IntervalGatherImpl.java:50)
at com.erayt.solar.monitor.internal.IntervalGatherImpl.run(IntervalGatherImpl.java:38)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
[02:10:30.187][ INFO][main][c.e.s.s.SolarPropertyPlaceholderConfigurer] : Loading properties file from class path resource [conf/properties/project.properties]
[02:10:30.187][ INFO][main][c.e.s.s.SolarPropertyPlaceholderConfigurer] : Loading properties file from class path resource [conf/properties/project_margin_war.properties]
[02:10:30.265][ INFO][main][o.s.b.f.s.DefaultListableBeanFactory] : Pre-instantiating singletons in o
Exception in thread "Timer-1" java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Cpu.gather(Lorg/hyperic/sigar/Sigar;)V
at org.hyperic.sigar.Cpu.gather(Native Method)
at org.hyperic.sigar.Cpu.fetch(Cpu.java:30)
at org.hyperic.sigar.Sigar.getCpu(Sigar.java:320)
at com.erayt.solar.monitor.util.SigarFactory.getRealtime(SigarFactory.java:48)
at com.erayt.solar.monitor.util.SigarFactory.getRealtime(SigarFactory.java:39)
at com.erayt.solar.monitor.host.RealtimeGather.gather(RealtimeGather.java:14)
at com.erayt.solar.monitor.internal.IntervalGatherImpl.gather(IntervalGatherImpl.java:50)
at com.erayt.solar.monitor.internal.IntervalGatherImpl.run(IntervalGatherImpl.java:38)
at java.util.TimerThread.mainLoop(Timer.java:512)

at java.util.TimerThread.run(Timer.java:462)

===================================================================================================================================

解决办法

下载sigar-1.6.2.zip工具包,拷贝文件sigar-1.6.2.zip\hyperic-sigar-1.6.2\sigar-bin\lib\sigar-x86-winnt.dll到JDK目录jdk-6u45\bin下

就解决了

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值