java exception robotics toolbox

4 Ansichten (letzte 30 Tage)
chef13
chef13 am 1 Mär. 2018
Bearbeitet: chef13 am 2 Mär. 2018
Hi,
I am trying to do the example - Task 3 - Work with Messages Using MATLAB Function Block - at this link
but when I click the MATLAB Function - Assign block I have the following error:
Error calling eml_man(open_editor): Java exception occurred:
java.lang.NullPointerException
at com.mathworks.toolbox.eml.EMLEditorApi.documentOpen(EMLEditorApi.java:483)
I am working on Ubuntu 14.04 and the command:
update-java-alternatives -l
gives me :
update-java-alternatives -l
java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64
Do you know what could be the problem?

Akzeptierte Antwort

chef13
chef13 am 2 Mär. 2018
I found the answer to my question. It was rather easy. It was the Java version on my ubuntu 14.04 and the one expected by matlab
You can check, in MATLAB, the version of Java expected in this way:
version -java
Mine was:
'Java 1.8.0_121-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode'
While from the command
update-java-alternatives -l
I had
update-java-alternatives -l
java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64
Then to solve the problem I had to update my java and I did it through
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Restart your laptop and it should work.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by