The definition for LoginBean in the JAR file has a format error.WARNING: Could not instantiate bean "LoginBean" from JAR "F:\Demo\login.jar" But were unable to load the class "LoginBean" because of java.lang.ClassNotFoundException: LoginBean Common reasons for this failure include: (1) The class is not defined in the correct package it should be in the default package (2) The class has not been given the correct name it should be called "LoginBean" (3) The class file contains the wrong class or no class at all 我没有放在什么包下,bean也没有打包。 我以前测试的时候打包是可以的,现在总是出现这样的问题。 而且用别人机器测试,beanbox下没有问题,所有的文件一模一样,就是总出这个问题。 快崩溃了~~~~
has a format error.WARNING: Could not instantiate bean "LoginBean" from JAR "F:\Demo\login.jar"
But were unable to load the class "LoginBean" because of
java.lang.ClassNotFoundException: LoginBean
Common reasons for this failure include:
(1) The class is not defined in the correct package
it should be in the default package
(2) The class has not been given the correct name
it should be called "LoginBean"
(3) The class file contains the wrong class or no class at all
我没有放在什么包下,bean也没有打包。
我以前测试的时候打包是可以的,现在总是出现这样的问题。
而且用别人机器测试,beanbox下没有问题,所有的文件一模一样,就是总出这个问题。
快崩溃了~~~~
一个低级错误
我的JC用的是JDK1.5……
谢谢各位