请教关于J2EETUTORIAL里Converter的问题
我下载了J2EETUTORIAL,并编译了所有的例子,然后按提示一步一步地用Deploytool集成,发布。
第一个例子:Converter
Web Component正常,但运行Client时不正确,错误提示如下:
Application threw an exception:java.lang.NoClassDefFoundError: ConverterHome
TroubleShooting里如此解释:
The Client Throws a NoClassDefFoundError
Symptom: The client reports this exception:
java.lang.NoClassDefFoundError:converter.ConverterHome
Solution: This error occurs if the client cannot find the classes in the ConverterAppClient.jar file. Make sure that you've correctly followed the steps outlined in Running the J2EE Application Client.
而且我能保证在Client的配置过程中绝对正确。所以,想请教是不是环境方面有什么问题?
OS:WindowsXP Professional(SP1)
J2SDK:1.3.1_06
J2EESDK:1.3.1
JAVA_HOME,J2EE_HOME都OK。
CLASSPATH=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%J2EE_HOME%\lib\j2ee.jar
注:在Windows2000Server(SP3)下同样的JAVA环境下我曾经配置过,OK!