关于sun的事例代码petstore的编译问题,请赐教
今天学习Java碰到一个问题,编译随jsk一起下载的petstore时出错,下面分别列出出错信息、环境和我的问题,请大家帮帮忙,先谢了
ejbclientjar:
[copy] Copying 23 files to C:\Sun\AppServer\samples\blueprints\petstore1.4\src\components\supplierpo\build\ejbjar
[delete] Deleting: C:\Sun\AppServer\samples\blueprints\petstore1.4\src\components\supplierpo\build\ejbjar\com\sun\j2ee\blueprints\supplierpo\ejb\SupplierOrderEJB.class
[delete] Deleting: C:\Sun\AppServer\samples\blueprints\petstore1.4\src\components\supplierpo\build\ejbjar\com\sun\j2ee\blueprints\address\ejb\AddressEJB.class
[delete] Deleting: C:\Sun\AppServer\samples\blueprints\petstore1.4\src\components\supplierpo\build\ejbjar\com\sun\j2ee\blueprints\lineitem\ejb\LineItemEJB.class
[delete] Deleting: C:\Sun\AppServer\samples\blueprints\petstore1.4\src\components\supplierpo\build\ejbjar\com\sun\j2ee\blueprints\contactinfo\ejb\ContactInfoEJB.class
[delete] Deleting: C:\Sun\AppServer\samples\blueprints\petstore1.4\src\components\supplierpo\build\supplierpo-ejb-client.jar
[jar] Building jar: C:\Sun\AppServer\samples\blueprints\petstore1.4\src\components\supplierpo\build\supplierpo-ejb-client.jar
[delete] Deleting directory C:\Sun\AppServer\samples\blueprints\petstore1.4\src\components\supplierpo\build\ejbjar
core:
init:
compile:
[javac] Compiling 36 source files to C:\Sun\AppServer\samples\blueprints\petstore1.4\src\waf\build\classes
[javac] 注意: 某些输入文件使用了未经检查或不安全的操作。
[javac] 注意: 要了解详细信息,请使用 -Xlint:unchecked 重新编译。
[javac] Compiling 6 source files to C:\Sun\AppServer\samples\blueprints\petstore1.4\src\waf\build\classes
[javac] 注意: 某些输入文件使用了未经检查或不安全的操作。
[javac] 注意: 要了解详细信息,请使用 -Xlint:unchecked 重新编译。
[javac] Compiling 12 source files to C:\Sun\AppServer\samples\blueprints\petstore1.4\src\waf\build\classes
[javac] 注意: 某些输入文件使用了未经检查或不安全的操作。
[javac] 注意: 要了解详细信息,请使用 -Xlint:unchecked 重新编译。
环境:
下载的tomcat安装文件 apache-tomcat-5.5.15.zip
下载的tomcat安装文件 j2eesdk-1_4_03-windows.exe
其他环境变量已设置,可以编译运行helloworld
疑问:
1、我用anant编译,错误提示中要求“使用 -Xlint:unchecked 重新编译” 但asant没有提供没有提供 -Xlint:unchecked 这个参数
2、在petstore的文档<samples_home>\docs\installing.html中要求
Java SE 5.0
Sun Java System Application Server
这个是随J2EE1.4下载的怎么要求“Java SE 5.0 ”呢?
3、怎样解决
问题点数:100、回复次数:2Top
1 楼ywb1973(谁)(★☆◎☆★)回复于 2006-03-04 18:25:26 得分 0
1、你用的是anant还是asant?都没有听说过呀,换ant比较好!
2、jdk只有标准版,即J2SE,只有企业级的应用才叫J2EE,你下载一个JDK1.5(有的地方叫jdk5.0),更换你的jdk1.4即可
3、前面两个问题解决了,自然就解决了Top
2 楼doway(john)回复于 2006-03-04 19:49:18 得分 0
J2EE 1.4 本身包含 JDK 5。Top




