MEvent. Case! issue when scrolling, without Synaptics Touchpad

Hi everyone,
I have a problem with Matlab (2017a) on my Ubuntu 17.10 machine. After upgrading to Ubuntu 17.10, I started experiencing the MEvent.Case! problem when finger scrolling, as described in other threads such as this: https://stackoverflow.com/questions/24610534/deactivate-mevent-case-in-java-ides and this: https://de.mathworks.com/matlabcentral/answers/112528-mevent-case-when-two-finger-scrolling .
Most of the solutions I found (changing the "Synaptics Two Finger Scrolling" and "Horizontal Scrolling" options, creating a startup.m file) rely on having a Synaptics touchpad. Given that I don't have Synaptics touchpad, the solution that seemed to work for me is the second on the Stackoverflow link, that relies on installing openjdk-7. Of note, openjdk-7 has not been released for Ubuntu 17.10, so I installed openjdk-8.
Following the instructions on the link, I ran 'export MATLAB_JAVA=/usr/lib/jvm/openjdk-8-jdk/jre' on the terminal before starting Matlab. However, also this solution does not work for me, because when I open Matlab I get the following error: 'PostVMInit failed to initialize com.mathworks.mwswing.MJStartupForDesktop'
and I then get more errors when using Matlab, of the kind: Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could not initialize class com.mathworks.mwswing.MJStartupForDesktop
Does anyone have any insight on how to solve the MEvent.Case! issue in this case? It is almost impossible to use Matlab in these conditions.
Thank you very much in advance!

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Asked:

on 5 Apr 2018

Commented:

on 23 Nov 2020

Community Treasure Hunt

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

Start Hunting!