[Bluej-discuss] Enable Assertions BlueJ 2.1.3 Java 1.5.0_07 on OS X

Bruce Quig bquig at deakin.edu.au
Wed Feb 28 00:18:23 GMT 2007


Hi Doug,

You were on the right track with your investigations.There are 2 ways to 
do it. The actual bluej.defs file lies within the BlueJ.app application 
bundle. If you right click on the BlueJ.app and select Show Package 
Contents it will allow you to traverse the app bundle. The bluej.defs 
file can be found in BlueJ.app/Contents/Resources/Java

You should be able to make the appropriate change in there, which from 
memory is to uncomment the bluej.vm.args line to read:

bluej.vm.args=-ea

The other alternative is in the <home>/Library/Preferences/org.bluej 
area that you mentioned. There is a file called bluej.properties. You 
can add the required bluej property setting into there and it will 
over-ride any setting in bluej.defs. This means you can make the change 
at the user level rather than at the application level if that is more 
appropriate.

Let is know if you have any problems (bluej-support at bluej.org)

Bruce

Doug wrote:

>Hi,
>
>Does anyone know how to enable assertions with the above configuration?
>
>I have found posts that tell me to edit the bluej.defs file, but I  
>don't have one on my system.
>I tried creating one under home/Library/Preferences/org.bluej since  
>this was the only place I could see any type of config files at all  
>and had no joy.
>Can anyone point out the error of my ways?
>
>thanks a lot
>Doug
>
>
>_______________________________________________
>mailing list bluej-discuss at bluej.org
>To unsubscribe or change your preferences, go to
>http://lists.bluej.org/mailman/listinfo/bluej-discuss
>  
>


-- 
Bruce Quig
Research Programmer/Analyst
BlueJ Project
School of Engineering & Information Technology
Deakin University

Ph: +61 3 92446239

bquig at deakin.edu.au



More information about the bluej-discuss mailing list