Topic: eclipse怎么使用断言?

  Print this page

1.eclipse怎么使用断言? Copy to clipboard
Posted by: daminggege
Posted on: 2004-05-25 17:16

知道怎么在java 时加参数,
不知道怎么在javac时加,怎么开启断言?

2.Re:eclipse怎么使用断言? [Re: daminggege] Copy to clipboard
Posted by: zyzhang
Posted on: 2004-05-25 18:06

javac -source 1.4 MyClass.java // for command line.
This flag is necessary so as not to cause source compatibility problems.

In eclipse, Preference > Java > Compiler > Compliance: JDK compliance.
and have source compatibility to 1.4.

I wonder what's your eclipse version, cause this used to be a bug.

3.Re:eclipse怎么使用断言? [Re: daminggege] Copy to clipboard
Posted by: daminggege
Posted on: 2004-05-25 20:12

这个我当然知道,我是问eclipse中怎么用?

4.Re:eclipse怎么使用断言? [Re: zyzhang] Copy to clipboard
Posted by: DraculaCwg
Posted on: 2004-05-25 21:10

新版的可以在 java->jre的設定劃面加入 -ea
舊版的可以在啟動時加入
c:\eclipse\eclipse.exe -ea

5.Re:eclipse怎么使用断言? [Re: daminggege] Copy to clipboard
Posted by: daminggege
Posted on: 2004-05-26 10:23

谢谢啊!可是在编辑器里用好像还是不成

6.Re:eclipse怎么使用断言? [Re: daminggege] Copy to clipboard
Posted by: DraculaCwg
Posted on: 2004-05-26 20:37

java-> complier -> jdk class格式 設定成1.4

7.Re:eclipse怎么使用断言? [Re: daminggege] Copy to clipboard
Posted by: zgd
Posted on: 2004-05-26 23:38

http://www.cjsdn.com/post/view?bid=7&id=47970&sty=1


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923