返回首页
当前位置: 主页 > 网络编程 > Jsp实例教程 >

LCDS3.1安装时导入lcds-sample.war包后编译出错解决方案

时间:2012-04-02 21:57来源:知行网www.zhixing123.cn 编辑:麦田守望者

LCDS3.1安装时导入lcds-sample.war包后编译出错,错误如下:
Description Resource Path Location Type
Incompatible conditional operand types int and null AccountDAO.java /lcds-samples/src/com/salesbuilder/dao line 53 Java Problem
Incompatible conditional operand types int and null AccountDAO.java /lcds-samples/src/com/salesbuilder/dao line 54 Java Problem
Incompatible conditional operand types int and null AccountDAO.java /lcds-samples/src/com/salesbuilder/dao line 80 Java Problem
Incompatible conditional operand types int and null AccountDAO.java /lcds-samples/src/com/salesbuilder/dao line 81 Java Problem
Incompatible conditional operand types int and null ContactDAO.java /lcds-samples/src/com/salesbuilder/dao line 44 Java Problem
Incompatible conditional operand types int and null ContactDAO.java /lcds-samples/src/com/salesbuilder/dao line 46 Java Problem
Incompatible conditional operand types int and null ContactDAO.java /lcds-samples/src/com/salesbuilder/dao line 67 Java Problem
Incompatible conditional operand types int and null ContactDAO.java /lcds-samples/src/com/salesbuilder/dao line 69 Java Problem
Incompatible conditional operand types int and null OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 42 Java Problem
Incompatible conditional operand types int and null OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 59 Java Problem
The method getItem(String, Object) in the type BaseDAO is not applicable for the arguments (String, int) AccountCategoryDAO.java /lcds-samples/src/com/salesbuilder/dao line 22 Java Problem
The method getItem(String, Object) in the type BaseDAO is not applicable for the arguments (String, int) AccountDAO.java /lcds-samples/src/com/salesbuilder/dao line 35 Java Problem
The method getItem(String, Object) in the type BaseDAO is not applicable for the arguments (String, int) ContactDAO.java /lcds-samples/src/com/salesbuilder/dao line 35 Java Problem
The method getItem(String, Object) in the type BaseDAO is not applicable for the arguments (String, int) IndustryDAO.java /lcds-samples/src/com/salesbuilder/dao line 22 Java Problem
The method getItem(String, Object) in the type BaseDAO is not applicable for the arguments (String, int) OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 34 Java Problem
The method getItem(String, Object) in the type BaseDAO is not applicable for the arguments (String, int) SalesRepDAO.java /lcds-samples/src/com/salesbuilder/dao line 24 Java Problem
The method getList(String, int, int) in the type BaseDAO is not applicable for the arguments (String, int) ContactDAO.java /lcds-samples/src/com/salesbuilder/dao line 30 Java Problem
The method getList(String, int, int) in the type BaseDAO is not applicable for the arguments (String, int) OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 29 Java Problem
Type mismatch: cannot convert from double to Object OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 44 Java Problem
Type mismatch: cannot convert from double to Object OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 61 Java Problem
Type mismatch: cannot convert from int to Object AccountCategoryDAO.java /lcds-samples/src/com/salesbuilder/dao line 36 Java Problem
Type mismatch: cannot convert from int to Object AccountCategoryDAO.java /lcds-samples/src/com/salesbuilder/dao line 47 Java Problem
Type mismatch: cannot convert from int to Object ContactDAO.java /lcds-samples/src/com/salesbuilder/dao line 43 Java Problem
Type mismatch: cannot convert from int to Object ContactDAO.java /lcds-samples/src/com/salesbuilder/dao line 56 Java Problem
Type mismatch: cannot convert from int to Object ContactDAO.java /lcds-samples/src/com/salesbuilder/dao line 79 Java Problem
Type mismatch: cannot convert from int to Object ContactDAO.java /lcds-samples/src/com/salesbuilder/dao line 81 Java Problem
Type mismatch: cannot convert from int to Object IndustryDAO.java /lcds-samples/src/com/salesbuilder/dao line 36 Java Problem
Type mismatch: cannot convert from int to Object IndustryDAO.java /lcds-samples/src/com/salesbuilder/dao line 47 Java Problem
Type mismatch: cannot convert from int to Object OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 41 Java Problem
Type mismatch: cannot convert from int to Object OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 45 Java Problem
Type mismatch: cannot convert from int to Object OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 62 Java Problem
Type mismatch: cannot convert from int to Object OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 66 Java Problem
Type mismatch: cannot convert from int to Object OpportunityDAO.java /lcds-samples/src/com/salesbuilder/dao line 77 Java Problem
Type mismatch: cannot convert from int to Object SalesRepDAO.java /lcds-samples/src/com/salesbuilder/dao line 41 Java Problem
Type mismatch: cannot convert from int to Object SalesRepDAO.java /lcds-samples/src/com/salesbuilder/dao line 52 Java Problem

 

导致上述错误主要是Project Facted(选择项目名称按右键出现)和JAVA Compiler(Windows->Perfect->Compiler)不一致产生的。

Project Facted版本是1.3,按右键改成1.6,JAVA Compiler版本由于安装的是jdk1.6的,因此不需要改动。改好后,重新编译时,错误提示不再出现。

此外,LCDS3.1样例代码flex/samples/pdfgen/PDFResourceServlet.java如果出现javax.servlet找不到,请在网上下载一个servlet.jar包放到lib目录下即可。还有就是如果出现javax.transaction.Synchronization类找不到,请在网上下载一个jta.jar包放到lib目录下即可。

顶一下
(2)
100%
踩一下
(0)
0%
标签(Tag):Java JAVA实例教程 JAVA基础教程 Java源代码 Java技巧
------分隔线----------------------------
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:点击我更换图片