“libprism_sw.dylib” cannot be opened because the developer cannot be verified. on mac JAVAFX
Asked Answered
P

4

7

I use eclipse and when I run my program it says this

"libprism_sw.dylib” cannot be opened because the developer cannot be verified. and “libprism_es2.dylib” cannot be opened because the developer cannot be verified.

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

    public class try1 extends  Application {
        public void start(Stage arg0) {
            // TODO Auto-generated method stub\
            Image[] array = { new Image("Screen Shot 2020-12-19 at 9.07.20 AM"),
                    new Image("Screen Shot 2021-02-25 at 10.47.43 AM") };
            int n = (int) (Math.random() * 4);
            Pane pane = new Pane();
            ImageView imgv = new ImageView(array[n]);
            pane.getChildren().add(imgv);
            Scene scene = new Scene(pane);
            arg0.setScene(scene);
            arg0.show();
        }
        public static void main(String[] args) {
            // TODO Auto-generated method stub\
            lanuch(args);
        }
        private static void lanuch(String[] args) {
            // TODO Auto-generated method stub
            
        }
    }

Any solutions?

Passade answered 31/3, 2021 at 15:47 Comment(1)
Which are your Java and JavaFX versions?Cath
A
8

This enables to run apps from anywhere (useful if you want to avoid checking case by case, but need to be careful from where you download your software):

Type this in Terminal (located in /Applications/Utilities).

sudo spctl --master-disable

Then check in System Preferences>Security and Privacy>Allow apps downloaded from, and check that the "Anywhere" option is there and selected.

https://discussions.apple.com/thread/7737371

Anaplastic answered 7/4, 2022 at 15:11 Comment(0)
U
6

The same thing happened to me after I forgot that I moved the location of my javafx libraries, but forgot to update it in the IDE. I downloaded them again and extracted them to a folder from the archive. Went through the JavaFX "activation" and still wouldn't work.

I fixed it by going to Settings > Security & Privacy > General and allowing the libraries to be accessed despite the fact that they couldn't be verified (unidentified developer).

You will see the .dylib file listed under the "Allow apps downloaded from:" section. I authorized it and a few more files that required permission, and voila! Problem solved.

Unhealthy answered 1/4, 2021 at 19:36 Comment(2)
i did what you say and now instead of the pop up massage it open a folder called java every time i run the code and i have to force quit the folder or it will still be openPassade
In mac os 13.2.1 it was two steps, first allow the library in Settings -> Security and then when it got loaded it once again asked to Open. Subsequent runs worked without any user intervetion.Sextuplicate
M
0

Upgrade to version SOAP UI 5.7.1 . This issue is fixed release on 1st Aug 2023

Main answered 4/8, 2023 at 19:3 Comment(0)
A
0

For anyone getting here because of similar issues, with other dynamic libraries: there is a better solution than the spctl --master-disable suggested above (which is not very selective about which security checks you disable).

To enable a single dylib to be loaded you can clear its quarantine bit, with the following command in the Terminal:

xattr -d com.apple.quarantine /path/to/troublesome.dylib

Google for "macOS clear quarantine bit" for more examples.

Aseptic answered 27/5, 2024 at 15:1 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.