Can't open GUI on Macbook
Quote from mp on June 28, 2019, 2:52 amHi there,
I'm having some difficulties installing FishResp on my Macbook (10.14.5) and I was wondering if you had any advice. I have both Java (1.80_212-b10) and R (version 3.6.0) installed on my computer. I clicked on FishResp.dmg to install and downloaded the R packages successfully, but when I click on the icon to open the GUI, nothing happens. The icon shows up in my dock but the program doesn't open. I've tried to install it a few times with the same results, so I'm not sure what I'm doing wrong. In the meantime I'm learning to use the R version, but I was hoping to try out the GUI.
Thanks for your help and for making this wonderful free tool!
Hi there,
I'm having some difficulties installing FishResp on my Macbook (10.14.5) and I was wondering if you had any advice. I have both Java (1.80_212-b10) and R (version 3.6.0) installed on my computer. I clicked on FishResp.dmg to install and downloaded the R packages successfully, but when I click on the icon to open the GUI, nothing happens. The icon shows up in my dock but the program doesn't open. I've tried to install it a few times with the same results, so I'm not sure what I'm doing wrong. In the meantime I'm learning to use the R version, but I was hoping to try out the GUI.
Thanks for your help and for making this wonderful free tool!
Quote from Sergey Morozov on June 28, 2019, 9:38 amHi Melissa,
Thanks for contacting us!
Do you have other versions of Java? As namely, do you have other folders than "1.80_212-b10.jdk" in the folder "library/Java/JavaVirtualMachines"?
If yes, delete the other versions and try to reinstall the program.The other thing, that you probably should do first, is to open FishResp via Terminal and see what kind of error will be printed. To do it, just open Terminal and paste this command: "open -a FishResp"
Best wishes,
Sergey
P.S. Sorry for the late response, I just found your email in a junk folder.
Hi Melissa,
Thanks for contacting us!
Do you have other versions of Java? As namely, do you have other folders than "1.80_212-b10.jdk" in the folder "library/Java/JavaVirtualMachines"?
If yes, delete the other versions and try to reinstall the program.
The other thing, that you probably should do first, is to open FishResp via Terminal and see what kind of error will be printed. To do it, just open Terminal and paste this command: "open -a FishResp"
Best wishes,
Sergey
P.S. Sorry for the late response, I just found your email in a junk folder.
Quote from mp on June 28, 2019, 7:43 pmThanks so much for your response. I did have two versions of Java installed so I removed the unwanted version. I realized I'm also having trouble installing the mclust R library, which might be contributing to the issue. When I used the command in terminal:
cd Downloads/FishResp_mac
sudo Rscript installLibs.r
I received the following message about mclust:
* installing *source* package ‘mclust’ ...
** package ‘mclust’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fPIC -Wall -g -O2 -c dmvnorm.f -o dmvnorm.o
make: gfortran: No such file or directory
make: *** [dmvnorm.o] Error 1
ERROR: compilation failed for package ‘mclust’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/mclust’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/mclust’
The downloaded source packages are in
‘/private/tmp/Rtmp6zZ06f/downloaded_packages’
Warning message:
In install.packages("mclust", repos = "http://cran.us.r-project.org") :
installation of package ‘mclust’ had non-zero exit status
trying URL 'http://cran.us.r-project.org/bin/macosx/el-capitan/contrib/3.6/rMR_1.1.0.tgz'
Content type 'application/x-gzip' length 272826 bytes (266 KB)
==================================================
downloaded 266 KB
When I try to open the GUI manually or in terminal (open -a FishResp), I get a message asking if I want to open it (I click open) but nothing happens and the program doesn't appear in my dock.
Thanks so much for your response. I did have two versions of Java installed so I removed the unwanted version. I realized I'm also having trouble installing the mclust R library, which might be contributing to the issue. When I used the command in terminal:
cd Downloads/FishResp_mac
sudo Rscript installLibs.r
I received the following message about mclust:
* installing *source* package ‘mclust’ ...
** package ‘mclust’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
gfortran -fPIC -Wall -g -O2 -c dmvnorm.f -o dmvnorm.o
make: gfortran: No such file or directory
make: *** [dmvnorm.o] Error 1
ERROR: compilation failed for package ‘mclust’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/mclust’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/mclust’
The downloaded source packages are in
‘/private/tmp/Rtmp6zZ06f/downloaded_packages’
Warning message:
In install.packages("mclust", repos = "http://cran.us.r-project.org") :
installation of package ‘mclust’ had non-zero exit status
trying URL 'http://cran.us.r-project.org/bin/macosx/el-capitan/contrib/3.6/rMR_1.1.0.tgz'
Content type 'application/x-gzip' length 272826 bytes (266 KB)
==================================================
downloaded 266 KB
When I try to open the GUI manually or in terminal (open -a FishResp), I get a message asking if I want to open it (I click open) but nothing happens and the program doesn't appear in my dock.
Quote from Sergey Morozov on June 29, 2019, 7:07 amSomething is still wrong between Java and FishResp (e.g. JAVA_HOME is pointing to other than JDK 8). So, we need to remove all Java components from your MacOS. To do it run the following commands in Terminal:
sudo rm -rf /Library/Java/* sudo rm -rf /Library/PreferencePanes/Java* sudo rm -rf /Library/Internet\ Plug-Ins/Java*Then, install JDK 8 and run FishResp again. That should work.
But, if it is still not working, then go to the content of FishResp application and run the 'launcher' file there (the address is: "/Applications/FishResp.app/Contents/MacOS/launcher"). Please, send me the printed info in the appeared Terminal window.
Something is still wrong between Java and FishResp (e.g. JAVA_HOME is pointing to other than JDK 8). So, we need to remove all Java components from your MacOS. To do it run the following commands in Terminal:
sudo rm -rf /Library/Java/* sudo rm -rf /Library/PreferencePanes/Java* sudo rm -rf /Library/Internet\ Plug-Ins/Java*
Then, install JDK 8 and run FishResp again. That should work.
But, if it is still not working, then go to the content of FishResp application and run the 'launcher' file there (the address is: "/Applications/FishResp.app/Contents/MacOS/launcher"). Please, send me the printed info in the appeared Terminal window.
Quote from mp on July 8, 2019, 6:06 amHi Sergey,
I followed your instructions (uninstalling/reinstalling Java) and still can't seem to launch the GUI. I got the following error message from the launcher:
Cannot find JRI native library!
Please make sure that the JRI native library is in a directory listed in java.library.path.
java.lang.UnsatisfiedLinkError: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/jri/libjri.jnilib: dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/jri/libjri.jnilib, 1): Library not loaded: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libR.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/jri/libjri.jnilib
Reason: image not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1861)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.rosuda.JRI.Rengine.<clinit>(Rengine.java:19)
at com.fishrespbase.Main.initR(Main.java:306)
at com.fishrespbase.Main.start(Main.java:55)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$166(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$179(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$177(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$178(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.jav
Hi Sergey,
I followed your instructions (uninstalling/reinstalling Java) and still can't seem to launch the GUI. I got the following error message from the launcher:
Cannot find JRI native library!
Please make sure that the JRI native library is in a directory listed in java.library.path.
java.lang.UnsatisfiedLinkError: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/jri/libjri.jnilib: dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/jri/libjri.jnilib, 1): Library not loaded: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libR.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/jri/libjri.jnilib
Reason: image not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1861)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.rosuda.JRI.Rengine.<clinit>(Rengine.java:19)
at com.fishrespbase.Main.initR(Main.java:306)
at com.fishrespbase.Main.start(Main.java:55)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$166(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$179(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$177(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$178(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.jav
Quote from Sergey Morozov on July 23, 2019, 12:49 amHi Melissa,
Something is definitely wrong with rJava, but I cannot figure out what exactly, as I have not met this problem before... The only thing which I can recommend is to try to reinstall the "rJava" package.
Actually, there is another, more radical and time-consuming, but straightforward solution: to remove FishResp, R including all the R packages, and Java JDK with other Java components from your MacBook (see https://osxuninstaller.com/uninstall-guides/uninstall-r/ and https://stackoverflow.com/questions/19039752/removing-java-8-jdk-from-mac, respectively). Then reinstall everything (latest versions, excluding JDK - it should be JDK 8u221) and try to run FishResp once more.
Current versions of software on my MacBook are:
- R 3.6.1
- rJava_0.9-11
- JDK 8u221
- FishResp GUI 1.0
Sorry for such challenges with installing GUI app.
Hi Melissa,
Something is definitely wrong with rJava, but I cannot figure out what exactly, as I have not met this problem before... The only thing which I can recommend is to try to reinstall the "rJava" package.
Actually, there is another, more radical and time-consuming, but straightforward solution: to remove FishResp, R including all the R packages, and Java JDK with other Java components from your MacBook (see https://osxuninstaller.com/uninstall-guides/uninstall-r/ and https://stackoverflow.com/questions/19039752/removing-java-8-jdk-from-mac, respectively). Then reinstall everything (latest versions, excluding JDK - it should be JDK 8u221) and try to run FishResp once more.
Current versions of software on my MacBook are:
- R 3.6.1
- rJava_0.9-11
- JDK 8u221
- FishResp GUI 1.0
Sorry for such challenges with installing GUI app.
Quote from Sergey Morozov on November 8, 2021, 11:32 amHi Melissa and other MacOS users,
I know, that it is not actual anymore for you, but I have met the same problem on my 'new' MacBook Pro.
I have figured out what was the issue: R version 3.X.X and Java JDK version 8 for some reasons did not communicate well. Since developers of Java SDK version >9 eliminated JavaFX (which is a graphical framework of FishResp), thus I asked you to use only Java SDK version 8.
However, yesterday, I found two independent open-source projects where JavaJDK 11 and JavaSDK 17 (the latest LTS version) included JavaFX for all operational systems: Liberica JDK or Zulu JDK. Note, you should download a full version JDK (around 250 Mb), not a default 'Standard JDK' and install it to your MacOS. Then, download the recent the latest version of R (in my case it is 4.1.2), and launch the FishResp GUI app.
No issues have been observed with this installation pipeline.
Best wishes,
Sergey
Hi Melissa and other MacOS users,
I know, that it is not actual anymore for you, but I have met the same problem on my 'new' MacBook Pro.
I have figured out what was the issue: R version 3.X.X and Java JDK version 8 for some reasons did not communicate well. Since developers of Java SDK version >9 eliminated JavaFX (which is a graphical framework of FishResp), thus I asked you to use only Java SDK version 8.
However, yesterday, I found two independent open-source projects where JavaJDK 11 and JavaSDK 17 (the latest LTS version) included JavaFX for all operational systems: Liberica JDK or Zulu JDK. Note, you should download a full version JDK (around 250 Mb), not a default 'Standard JDK' and install it to your MacOS. Then, download the recent the latest version of R (in my case it is 4.1.2), and launch the FishResp GUI app.
No issues have been observed with this installation pipeline.
Best wishes,
Sergey