Update matlab 2024a 2023a

Hello,

I have tried updating brainstorm. Once it finished and restarted matlab I couldn't open nor in version 2024a or version 2023a. I have Mac OS sonoma 14.5 chip M1. Here is matlab output.

I do have 2 versions of JDK version 8 and 11. Is that possibly giving any conflict?

Thanks for all the help in advance.

>> jenv('system')

ans = 

  JavaEnvironment with properties:

          Version: "Java 1.8.0_422-b05 with Amazon.com Inc. OpenJDK 64-Bit Server VM mixed mode"
             Home: "/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre"
          Library: "/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre/lib/server/libjvm.dylib"
           Status: loaded
    Configuration: "system"


>> version -java

ans =

    'Java 1.8.0_422-b05 with Amazon.com Inc. OpenJDK 64-Bit Server VM mixed mode'

>> brainstorm
 
BST> Starting Brainstorm:
BST> =================================
BST> Version: 08-Aug-2024
BST> Warning: Running on Apple silicon, some functions and plugins are not supported yet:
              Use Matlab < 2023b or Matlab for Intel processor for full support
BST> Compiling main interface files...
BST> Deleting old process reports...
BST> Loading configuration file...
BST> Checking internet connectivity... ok
BST> Initializing user interface...
Unable to resolve the name 'IconLoader.ICON_APP.getImage'.

Error in gui_brainstorm>CreateWindow (line 83)
    jBstFrame.setIconImage(IconLoader.ICON_APP.getImage());

Error in gui_brainstorm (line 34)
eval(macro_method);

Error in gui_initialize (line 30)
GlobalData.Program.GUI = gui_brainstorm('CreateWindow');

Error in bst_startup (line 380)
gui_initialize();

Error in brainstorm (line 126)
        bst_startup(BrainstormHomeDir, 1, BrainstormDbDir, TemplateName);

This error propably relates to a problem with the update, as described in this thread : Unable to launch Brainstorm GUI (CentOS) - #2 by Raymundo.Cassani

1 Like

@andraderenew, it is likely something went wrong during the update, as the file /java/brainstorm.jar is not there or it's corrupted.

If the file is there, delete it and start Brainstorm, which will download it.

Check this link:

Thanks @SBeumer

1 Like

Thank you! I deleted the jar file and now it is fixed!!