我安装了IntelliJ IDEA 11.1.3
和Java ME platform SDK 3.0.5
。我从头开始创建了一个Java ME项目,只有一个类,它扩展了 MIDlet 。我的运行/调试配置使用 DefaultCldcPhone1 作为设备模拟器。
当我尝试运行/调试应用程序时,我得到了这个:
Fatal Error: Buffer exceeds maximum allowed size (4096)
任何想法为什么会发生这种情况?
UPD1:到目前为止,我已经发现这与IDE无关,因为将相同的命令复制粘贴到命令提示符会产生相同的结果(当然,除非% MY_MODULE_NAME%。jar生成不正确。)
UPD2:我手动缩短了命令(完全删除了类路径,不包括我的jar),它按预期工作。我不明白,这种限制来自哪里?如果重要的话,我在Windows 7上。
运行命令IDEA生成(我添加的换行符,总长度 3757 符号):
"C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\bin\emulator"
-classpath "C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\agui_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\cdc_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\cdc_1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\cldc_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\cldc_1.1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\cldc_1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\fp_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\fp_1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr082_1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr120_1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr135_1.2.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr172_1.0-base.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr172_1.0-xmlrpc.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr172_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr177_1.0-apdu.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr177_1.0-crypto.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr177_1.0-jcrmi.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr177_1.0-pki.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr177_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr179_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr180_1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr184_1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr205_2.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr211_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr226_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr229_1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr234_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr238_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr239_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr253_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr256_1.2.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr257_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr258_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr280_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr281_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr287_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr293_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\jsr75_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\midp_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\midp_2.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\midp_2.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\pbp_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\pbp_1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\pp_1.0.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\pp_1.1.jar;
C:\Program Files (x86)\Java\Java_ME_platform_SDK_3.0.5\lib\secop_1.0.jar;
%MY_PROJECT_FOLDER%\%MY_MODULE_NAME%.jar"
"-Xdescriptor:C:\Users\%MY_USERNAME%\.IntelliJIdea11\system\caches\temp5962107910134648248.jad"
-Xdebug
-Xrunjdwp:transport=dt_socket,address=61127,server=y
-Xdevice:DefaultCldcPhone1