How to install custom matlab app

Hey I made a custom matlab app and I am trying to share it with the rest of my team. I have been testing to see if I could install it myself onto my computer however I get this into the command window when I try to install it.
Exception in thread "AWT-EventQueue-0": java.lang.NullPointerException
at com.mathworks.appmanagement.desktop.AppInstallNotifier$1.run(AppInstallNotifier.java:41)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

4 commentaires

Image Analyst
Image Analyst le 6 Sep 2023
I assume you developed it, so what is your definition of "install"? Did you compile it into a standalong executable and are trying to run that on your computer?
If you have any more questions, then attach your .mlapp file with the paperclip icon after you read this:
Harris Naser
Harris Naser le 7 Sep 2023
Modifié(e) : Harris Naser le 7 Sep 2023
I created the app through app designer, then I clicked share -> MATLAB app. I am unable to share the .mlappinstall file here. When installing I put the .mlappinstall file into my current matlap file path and then double click, this pops up a window that asks me if I want to install. As soon as I click install the above error is shown in the command window.
Ayush
Ayush le 7 Sep 2023
I tried to reproduce the error but for me it's working fine can you provide some more details of the target machine you are trying to install.
Thank you
Harris Naser
Harris Naser le 7 Sep 2023

Connectez-vous pour commenter.

Réponses (1)

Raj
Raj le 1 Oct 2023

0 votes

Hi Harris,
I understand that you are getting the above error while installing the app in MATLAB. I tried reproducing the error, but your app is working fine for me.
Alternatively, you can also try it by installing using the MATLAB Command Line Interface:
matlab.apputil.install(<mlappinstall file>)
Attaching below the documentation of the command for your reference-
Hope this resolves your query, and you are able to proceed further!

Catégories

Produits

Version

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by