How do I enable the Java console in Firefox?
This is not done via any Firefox configuration option, but an account wide Java setting:

Open the Java Preferences utility which you can find in Applications -> Utilities. 

There, under the Advanced tab, and "Java console", choose "Show console".