[Bluej-discuss] How to turn on assertions in BlueJ 2.1.0 ?
Michael Kölling
M.Kolling at kent.ac.uk
Tue Jun 27 10:14:25 BST 2006
On 26 Jun 2006, at 09:16, gumm at Mathematik.Uni-Marburg.de wrote:
> I used to be able to turn on assertions in older
> versions of BlueJ just using the Tools/Preferences dialog.
>
> In 2.1.0 I cant find the option, nor can I find
> anything about that subject in the tutorial. Any
> ideas ?
You can switch on assertion checking using the 'bluej.vm.args'
property in bluej.defs, and setting it to
bluej.vm.args=-enableassertions
For more info, see
http://www.bluej.org/help/archive.html#tip4
http://www.bluej.org/help/archive.html#tip12
http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html
Regards,
Michael
More information about the bluej-discuss
mailing list