java exception robotics toolbox

5 views (last 30 days)
chef13
chef13 on 1 Mar 2018
Edited: chef13 on 2 Mar 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?

Accepted Answer

chef13
chef13 on 2 Mar 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.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!