If the app is blocked even after right-clicking, macOS has placed a “quarantine” flag on the file. You can remove this flag manually.
Older versions of Java have security holes that are often blocked by default. Running the latest version often solves compatibility issues automatically. your security settings have blocked an application exclusive
Troubleshooting "Your Security Settings Have Blocked an Application" If the app is blocked even after right-clicking,