作者VVii (VVii)
看板java
标题Re: [问题] JCreator遇到OutOfMemoryError
时间Thu May 21 01:23:52 2009
推 hgs1906:configure -> option -> JDKtool 可以设定run的参数 05/21 00:54
→ VVii:它有三种tool type:compiler, run Apllication, run applet 05/21 00:59
推 hgs1906:edit -> Parameters 加上&加大 Xms Xmx 的参数看看 05/21 00:59
→ hgs1906:如果是跑程式的话 compiler , run Application 都改比较好 05/21 01:01
你好 我在JCreator设定了很多种组合 终於在这种设定下可以跑程式
但是还是会有
--------------------Configuration: <Default>--------------------
javac: invalid flag: -Xms256m
Usage: javac <options> <source files>
use -help for a list of possible options
Process completed.
这样的讯息 @@ 是我设定格式有误吗? 试过其他组合好像都不能run(+空格)
P.S. 网路上好像没有用JCreator改参数的例子@0@ JCreator太冷门吗 =.="
Run Apllication:
-Xms256m -Xmx500m -classpath "$[ClassPath]" $[JavaClass]
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
Compiler
-g -classpath "$[ClassPath]" -d "$[OutputPath]" $[JavaFiles] -Xms256m -Xmx500m
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.115.73.221
1F:推 hgs1906:如果程式ok了那基本上就ok了 那错误是指你第一个参数设错 05/21 01:27
2F:推 hgs1906:-Xms 256m 这个参数没有被 jvm 正确读取到 05/21 01:29
3F:→ VVii:这就是我不懂的地方 256没有比500大 怎麽会错啊@@ 05/21 01:29
4F:推 hgs1906:楼下因该才是正解 囧 compiler时没有那二个参数 怕谢 05/21 01:31
5F:→ VVii:好酷 谢谢你们~ 05/21 01:36