3

Scilab v6.0.2 is downloaded from the official website and installed, but it cannot be opened with the error:

To open "this Java application" you need to install the legacy Java SE 6 runtime.

I follow instructions in "More info" and on the Internet to download Java from Apple, but Java cannot be installed because "A newer version of this package is already installed", shown below:

enter image description here

My MacOS is Catalina v.10.15.3. How can I escape this loop?

Thanks for the help in advance.

4
  • 1
    I detect possible discrepancies in the requirements. I would guess that if the Scilab software requires a version of java this old, then the Scilab software will not be compatible with Catalina. However, the system requirements state Scilab needs Java 8. This is one discrepancy. Also, note the system requirements do not include Catalina. You may need to add Mojave as a second macOS to get Scilab to run. Fortunately, this is not difficult to do, provided your Mac has enough space and is not to new to run Mojave. Mar 12, 2020 at 8:15
  • 1
    I've had a similar problem with another software that relies on Java. The workaround is to change some capabilities in a config file for your current java installation. Maybe it will work for you as well, see instructions here: awareim.com/forum/viewtopic.php?p=48828#p48828
    – Lizzan
    Mar 12, 2020 at 9:32
  • The official website has also a newer version, Scilab 6.1.0 - I presume this one needs java8.
    – Yoan
    Mar 12, 2020 at 14:00
  • @Lizzan That helps. Thank you all guys ;)
    – Chris Tang
    Mar 12, 2020 at 17:28

1 Answer 1

3

I tried downloading Scilab and it runs fine on my Catalina, where I've done the steps below to get another Java application to run.

Download and install a recent version of the Oracle JDK, like Java SE 13 from https://www.oracle.com/java/technologies/javase-downloads.html#JDK13

Then open Terminal (it's in Applications/Utilities) and write

cd /Library/Java/JavaVirtualMachines/

and press Enter. This changes the working directory to where the Java Virtual Machines are installed. Then do

ls 

to get a list of the installed versions. Enter the Contents directory of the one you're using by writing something like

cd jdk-13.0.2.jdk/Contents/

Replace the version numbers if you have a different Java version installed.

Open Info.plist in any text editor (if you want to do that from Finder instead of Terminal, write open . to open the current folder) and search for these lines:

<key>JVMCapabilities</key>
 <array>
  <string>CommandLine</string>
 </array>

Replace those with these lines

<key>JVMCapabilities</key>
 <array>
  <string>JNI</string>
  <string>BundledApp</string>
  <string>WebStart</string>
  <string>Applets</string>
  <string>CommandLine</string>
 </array>

and save the file. Then try opening Scilab again.

Sources: https://crunchify.com/os-x-mavericks-eclipse-java-issue/ and https://www.awareim.com/forum/viewtopic.php?p=48828#p48828

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .