jetty运行JAVA项目时,报的这个错,不知道什么原因,求解! %1 不是有效的 Win32 应用程序。
Instantiationofbeanfailed;nestedexceptionisorg.springframework.beans.BeanInstantiatio...
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.zcsmart.cpk.kmc.service.UKService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: %1 不是有效的 Win32 应用程序。
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.zcsmart.cpk.kmc.service.UKService com.zcsmart.cpk.kmc.controller.UKController.ukService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'UKService' defined in file [D:\Repos\kmc\target\classes\com\zcsmart\cpk\kmc\service\UKService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.zcsmart.cpk.kmc.service.UKService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: %1 不是有效的 Win32 应用程序。 展开
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.zcsmart.cpk.kmc.service.UKService com.zcsmart.cpk.kmc.controller.UKController.ukService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'UKService' defined in file [D:\Repos\kmc\target\classes\com\zcsmart\cpk\kmc\service\UKService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.zcsmart.cpk.kmc.service.UKService]: Constructor threw exception; nested exception is java.lang.UnsatisfiedLinkError: %1 不是有效的 Win32 应用程序。 展开
2个回答
展开全部
可能你下载了一个 64位的程序却用一个32位的 JRE 来运行吧,或者你的操作系统是 32位的 XP / Win 7 ?
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2015-03-04
展开全部
楼主,看是运行的参数不正确了。
[D:\Repos\kmc\target\classes\com\zcsmart\cpk\kmc\service\UKService.class]
把.class文件当命令行参数了
[D:\Repos\kmc\target\classes\com\zcsmart\cpk\kmc\service\UKService.class]
把.class文件当命令行参数了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询