ELAN 5.2 on Ubuntu 18.02

(I initially installed ELAN 5.3 on Ubuntu 18.02, but I couldn’t get it to open at all, so I switched to 5.2)

I first got the “-Djava.ext.dirs=/usr/share/elan/ext is not supported. Use -classpath instead.” error. I followed the instructions on this post (modifying ELAN.lax) and got ELAN to start. I opened one of my previous projects. It opened in transcription mode, but when I switched to segmentation mode, I couldn’t see the wave form or my tiers. I could play the audio, but nothing else, and I was unable to switch back to any other mode.

Any suggestions? I’m a bit at a loss here, and I don’t see how to upload a screenshot.

Is there any useful information in the log file (View-View Log…)?
In an initial test on Windows with Java 10 it appeared that some other library/libraries were missing too (which used to be part of a standard Java 6 to Java 8 environment). Maybe that is the case here too (although I wouldn’t be able to explain why the problem would only occur when switching to Segmentation mode).

Thanks Han.

Looking at it again, it crashes on Annotation mode, not Segmentation mode.

The logs did look interesting, although I can’t really decipher them! Seems like it’s still related to Java.

Upon opening a file I got this warning:

Oct 30, 2018 11:20:41 PM mpi.eudico.client.annotator.tiersets.TierSetUtil readTierSetsFromFile
WARNING: Could not load the tier set file. The file does not exist or is not valid.

And then after switching to Annotation mode:

Oct 30, 2018 11:25:31 PM mpi.eudico.client.annotator.prefs.PreferencesWriter encodeAndSave INFO: Writing preferences: /home/may/biz/linguistics/Working Folder/SJTZ/donkey/SJTZ_donkeys_180629-205033_AntonioGCb.pfsx Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could not initialize class mpi.eudico.client.im.ImUtil at mpi.eudico.client.annotator.gui.InlineEditBox.init(InlineEditBox.java:314) at mpi.eudico.client.annotator.gui.InlineEditBox.<init>(InlineEditBox.java:274) at mpi.eudico.client.annotator.viewer.TimeLineViewer.initViewer(TimeLineViewer.java:454) at mpi.eudico.client.annotator.viewer.TimeLineViewer.<init>(TimeLineViewer.java:322) at mpi.eudico.client.annotator.viewer.TimeLineViewer.<init>(TimeLineViewer.java:348) at mpi.eudico.client.annotator.ViewerManager2.createTimeLineViewer(ViewerManager2.java:891) at mpi.eudico.client.annotator.layout.AnnotationManager.initComponents(AnnotationManager.java:2137) at mpi.eudico.client.annotator.ElanLayoutManager.changeMode(ElanLayoutManager.java:614) at mpi.eudico.client.annotator.commands.ChangeModeCommand.execute(ChangeModeCommand.java:36) at mpi.eudico.client.annotator.commands.CommandAction.actionPerformed(CommandAction.java:102) at mpi.eudico.client.annotator.commands.ChangeModeCA.actionPerformed(ChangeModeCA.java:164) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:401) at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369) at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:980) at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1024) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297) at java.desktop/java.awt.Component.processMouseEvent(Component.java:6589) at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342) at java.desktop/java.awt.Component.processEvent(Component.java:6354) at java.desktop/java.awt.Container.processEvent(Container.java:2261) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4966) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2319) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4914) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4543) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4484) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2305) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4798) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Thanks. The message about the “tier sets” can be ignored.

But the next message about the missing ImUtil is important. I assumed that this was already fixed since you referred to an earlier post, but I can imagine that this part could easily be missed in that long thread. Therefor, to solve this issue please follow the instructions of this post.
The library nl.mpi.guk__V07.jar needs to be in the classpath.

Oh dear, now I feel silly.

I had tried that, but not in combination with removing -Djava.ext.dirs=/usr/share/elan/ext from the lax.nl.java.option.additional= line.

Of course, it now works. Thank you so much for your help!