JDE ?版本对应不同型号?BB 讑֤Q最好选择和目标设备匹配版本:
* BlackBerry/4.1: for devices like the 8700, 7290 etc
* BlackBerry/4.2: for devices like the 8100, 8800 etc
* BlackBerry/4.3: for devices like the 8120, 8130 etc
2 ?build.xml 扑ֈ下面的行Q?br />
<!-- the device for the test mode - you can define it on the command-line
using the -D switch, e.g. ant -Ddevice=Generic/midp2 emulator -->
<property name="device" value="Nokia/Series60E2FP3"/>
<property name="devices"
value="${device},Generic/jtwi,Generic/midp1,Generic/Midp2Cldc11,Nokia/Series40E3,Nokia/Series60E2,Nokia/Series60E3,Sony-Ericsson/JavaPlatform6"
/>
也可以编译和q行一起勾选??递次自动q行了?br />
应该会有错误Q? BUILD FAILED
D:\Program Files\eclipse\Workspace\email\build.xml:88: Invalid CSS: The
CSS-attribute [expand-items] is not supported. Please check your
"polish.css" file(s).
q是_无法支持 polish.css 里的 expand-items?
修改 polish.css, 一般在resources文g下。找C用了q个参数的行, 注释掉这一行?br />
不能用双斜杆 // 注释一行,CSS 不支持这U注释格式。要?/* */?br />
版本不同Q可能还有别的错误。认真看问题报告Q找到引发问题的行,注释掉这些行?br />
可能q有q样的错? [j2mepolish] assembling resources for device [Generic/midp1].
[j2mepolish] preprocessing for device [Generic/midp1].
[j2mepolish] compiling for device [Generic/midp1].
[j2mepolish-javac-Generic/midp1] Compiling 248 source files to
D:\Program
Files\eclipse\Workspace\fisheye\build\real\Generic\midp1\de_DE\classes
[javac] Internal J2ME Polish class: D:\Program
Files\eclipse\Workspace\fisheye\build\real\Generic\midp1\de_DE\source\de\enough\polish\ui\UiAccess.java:3116:
找不到符?br />
[javac] W号Q?c?CustomItem
[javac] 位置Q?软g?javax.microedition.lcdui
[javac] public void setEventHandled( javax.microedition.lcdui.CustomItem item ) {
[javac] ^
[javac] 1 错误
[javac] An internal class of J2ME Polish could not be compiled.
Please try a clean rebuild by either calling "ant clean j2mepolish" or
by removing the working directory "D:\Program
Files\eclipse\Workspace\fisheye\build\real".
[javac] When an API-class was not found, you might need to define
where to find the device-APIs. Following classpath has been used:
[D:\Program Files\J2ME-Polish\import\midp-1.0.jar;D:\Program
Files\J2ME-Polish\import\cldc-1.0.jar;].
BUILD FAILED
D:\Program Files\eclipse\Workspace\fisheye\build.xml:90: Unable to
compile source code for device [Generic/midp1]: Compile failed; see the
compiler error output for details.
修改 build.xml
可以扑ֈq样的两行:
<!-- the device for the test mode - you can define it on the command-line
using the -D switch, e.g. ant -Ddevice=Generic/midp2 emulator -->
<property name="device" value="Nokia/Series60E2FP3"/>
<property name="devices"
value="${device},Generic/jtwi,Generic/midp1,Generic/Midp2Cldc11,Nokia/Series40E3,Nokia/Series60E2,Nokia/Series60E3,Sony-Ericsson/JavaPlatform6"
/>