j2me polish 编译出现cannot find symbol 错误
下面是我编译出现的错误
[javac] C:\workspace\PolishSDKTest\src\com\sdk\AdFormTest.java:56: cannot find symbol
[javac] symbol : variable mainformStyle
[javac] location: class de.enough.polish.ui.StyleSheet
[javac] form.append(adView, de.enough.polish.ui.StyleSheet.mainformStyle );
[javac] ^
[javac] Internal J2ME Polish class: C:\workspace\PolishSDKTest\build\Generic\AnyPhone\en_US\source\de\enough\polish\io\file\UiFileSystemTreeModel.java:50: cannot find symbol
[javac] symbol : method getAttribute(de.enough.polish.io.file.UiFileSystemTreeModel)
[javac] location: class de.enough.polish.ui.Item
[javac] FileSystemNode fsNode = (FileSystemNode) ((Item)node).getAttribute(this);
[javac] ^
[javac] Internal J2ME Polish class: C:\workspace\PolishSDKTest\build\Generic\AnyPhone\en_US\source\de\enough\polish\io\file\UiFileSystemTreeModel.java:62: cannot find symbol
[javac] symbol : method getAttribute(de.enough.polish.io.file.UiFileSystemTreeModel)
[javac] location: class de.enough.polish.ui.Item
[javac] parent = ((Item)parent).getAttribute(this);
[javac] ^
[javac] Internal J2ME Polish class: C:\workspace\PolishSDKTest\build\Generic\AnyPhone\en_US\source\de\enough\polish\io\file\UiFileSystemTreeModel.java:74: cannot find symbol
[javac] symbol : method setAttribute(de.enough.polish.io.file.UiFileSystemTreeModel,de.enough.polish.io.file.FileSystemNode)
[javac] location: class de.enough.polish.ui.Item
[javac] item.setAttribute(this, node);
[javac] ^
[javac] Internal J2ME Polish class: C:\workspace\PolishSDKTest\build\Generic\AnyPhone\en_US\source\de\enough\polish\ui\remotescreen\BluetoothRemoteScreen.java:117: cannot find symbol
[javac] symbol : method getScreenWidth()
[javac] location: class de.enough.polish.ui.Display
[javac] this.screenWidth = Display.getScreenWidth();
[javac] ^
[javac] Internal J2ME Polish class: C:\workspace\PolishSDKTest\build\Generic\AnyPhone\en_US\source\de\enough\polish\ui\remotescreen\BluetoothRemoteScreen.java:118: cannot find symbol
[javac] symbol : method getScreenHeight()
[javac] location: class de.enough.polish.ui.Display
[javac] this.screenHeight = Display.getScreenHeight();
[javac] ^
[javac] Internal J2ME Polish class: C:\workspace\PolishSDKTest\build\Generic\AnyPhone\en_US\source\de\enough\polish\ui\remotescreen\BluetoothRemoteScreen.java:124: cannot find symbol
[javac] symbol : method getInstance()
[javac] location: class de.enough.polish.ui.Display
[javac] out.writeUTF( Display.getInstance().getMidlet().getClass().getName() );
[javac] ^
[javac] 7 errors
[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 "C:\workspace\PolishSDKTest\build".
[javac] If an API-class was not found, you might need to define where to find the device-APIs. Following classpath has been used: [C:\J2ME-Polish2.1.4\import\mmapi.jar;C:\J2ME-Polish2.1.4\import\cldc-1.1.jar;C:\J2ME-Polish2.1.4\import\midp-2.0.jar;C:/J2ME-Polish2.1.4/import/btapi.jar;C:/J2ME-Polish2.1.4/import/fileconnection.jar;C:/J2ME-Polish2.1.4/import/wmapi.jar;C:/J2ME-Polish2.1.4/import/locationapi-1.0.jar].
BUILD FAILED