我的Duke在线银行打不了包(ant package-ejb)?

04-09-19 kunzi83
环境变量

ant_home D:\apache-ant-1.6.1

classpath .;%JAVA_HOME%\lib;C:\j2sdkee1.3.1\lib\j2ee.jar;

j2ee_home C:\j2sdkee1.3.1

java_home C:\j2sdk1.4.2

Path

%j2ee_home%\bin;%ant_home%\bin;%java_home%\bin

可是在cmd下输入ant package-ejb的出现:

compile-ejb:

package-account:

[java]java.lang.NoClassDefForndError:com/sun/enterprise/tools/packager/Main

[java]Exception in thread "main"

[java]java Result:1

package-customer:

[java]java.lang.NoClassDefForndError:com/sun/enterprise/tools/packager/Main

[java]Exception in thread "main"

[java]java Result:1

package-tx:

[java]java.lang.NoClassDefForndError:com/sun/enterprise/tools/packager/Main

[java]Exception in thread "main"

[java]java Result:1

package-ejb:

BUILD SUCCESSFUL

为什么?请高人指点。

banq
2004-10-10 09:41
目录结构不对,导致无法发现相应的包。

猜你喜欢