Error opening editor on MATLAB online

6 visualizzazioni (ultimi 30 giorni)
Azhan ur Rehman
Azhan ur Rehman il 19 Lug 2019
Risposto: timothy clutten il 27 Ago 2019
When i double click on file to open editor i got the error:J
ul 19, 2019 6:52:25 PM com.mathworks.connector.message_service.impl.MessageServiceJSONImpl handlePublishRequest WARNING: Error in subscription handler java.lang.NullPointerException
  3 Commenti
Wenyen Huang
Wenyen Huang il 28 Lug 2019
How do you solve this issue, I kept running into this error for the past 2 days...
Mikyung Jang
Mikyung Jang il 8 Ago 2019
I have same problem opening file even in the current working directory.
I found a trick - use 'find file' dialog, give the filename and it will find it.
Double click inside the dialog box opened the file.
Hope this helps.

Accedi per commentare.

Risposte (1)

timothy clutten
timothy clutten il 27 Ago 2019
SOLUTION ... install Java correctly, restart the computer, run the browser (from the command line).
Linux and Windows solution:
WINDOWS:
1) Bookmark the matlab online link, shut down browser,
2) install Java jre (or jdk).
3) Set the system environment veriable for JAVA_HOME
... and configure the browser for JAVA look up the instructions online.
4) SHUTDOWN THE PC
5) Try the browser again, if it does not work use a different browser.
LINUX:
Possible solution for Linux (Debian or Ubuntu or Mint or any deb distro) with Firefox:
1) Take a copy of the matlab url or bookmark it.
2) Close the tab and try to reopen it, try to navigate to the folder and file you were using.
if you get the red errors again ... close the tab.
3) In the Linux shell do this: pkill firefox
or pkill whatever_your_browser_is
4) From the shell try to open the browser (not from the icon). Then try to use online matlab again, did it work?
if Not. INSTALL openjdk on linux (WINDOWs or java on windows but follow ALL the instructions for the browser)
5) sudo apt-get update
6) sudo apt-get upgrade
7) sudo apt install default-jdk
8) Now find where it is:
a) which java
b) java -version
c) Set this at the end of $HOME/.bashrc
according to the DIRECTORY of the java location. (If it is a link follow the link).
In ~/.bashrc add this at the end:
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
--------------------output by example and step 8 below.
~/PycharmProjects/octave $ which java
/usr/lib/jvm/java-11-openjdk-amd64/bin/java
~/PycharmProjects/octave $ java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)
~/PycharmProjects/octave $ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
8) NOW RESTART THE COMPUTER and RESTART THE BROWSER FROM THE COMMAND LINE.
AND try online MatLab again from the bookmarked link and navigate to the directories in MatLab.

Community

Più risposte nel  Distance Learning Community

Categorie

Scopri di più su Platform and License in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by