Manual:$wgAllowJavaUploads/en

Details
Allow Java archive uploads. This is not recommended for public wikis since a maliciously-constructed applet running on the same domain as the wiki can steal the user's cookies.

Allow uploading JAR files after 1.39.0
To retain the ability to allow uploading JAR files, remove  from.