java exception robotics toolbox

조회 수: 4 (최근 30일)
chef13
chef13 2018년 3월 1일
편집: chef13 2018년 3월 2일
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?

채택된 답변

chef13
chef13 2018년 3월 2일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by