I maintainer LanguageTool package in snap format. Recently, the function of invoking the xprop command with the direct path has been added to the program java.io.IOException: Cannot run program "/usr/bin/xprop": error=2, No such file or directory
inside a snap package, calls to something on absolute paths in the system are prohibited. Help influence LanguageTool developers and change the functionality to call xprop in relative ways or using environment variables.
I apologize to the developers. The problem is related to Java + snap. Please close this discussion.
java.io.IOException: Cannot run program “/usr/bin/xprop”: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at org.GNOME.Accessibility.AtkWrapper.(AtkWrapper.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:805)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:886)
at javax.swing.RepaintManager.(RepaintManager.java:238)
at javax.swing.JComponent.repaint(JComponent.java:4792)
at java.awt.Component.repaint(Component.java:3311)
at javax.swing.JLabel.setText(JLabel.java:345)
at javax.swing.JLabel.(JLabel.java:161)
at org.languagetool.gui.Main.(Main.java:193)
at org.languagetool.gui.Main.main(Main.java:1180)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
… 18 more