Community
Participate
Working Groups
On the CentOS 8 CI machines, trying to test LSP4E: !ENTRY org.eclipse.urischeme 4 0 2020-08-01 00:29:15.795 !MESSAGE Cannot run program "xdg-mime": error=2, No such file or directory !STACK 0 java.io.IOException: Cannot run program "xdg-mime": error=2, No such file or directory at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) at org.eclipse.urischeme.internal.registration.ProcessExecutor.execute(ProcessExecutor.java:36) at org.eclipse.urischeme.internal.registration.RegistrationLinux.getRegisteredDesktopFileForScheme(RegistrationLinux.java:136) at org.eclipse.urischeme.internal.registration.RegistrationLinux.determineHandlerLocation(RegistrationLinux.java:80) at org.eclipse.urischeme.internal.registration.RegistrationLinux.getSchemesInformation(RegistrationLinux.java:69) at org.eclipse.urischeme.AutoRegisterSchemeHandlersJob.run(AutoRegisterSchemeHandlersJob.java:63) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) Caused by: java.io.IOException: error=2, No such file or directory at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340) at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107) ... 7 more
Did you check that 'xdg-mime' is installed on the machine? Why is this an issue for Platform-IDE?
(In reply to Rolf Theunissen from comment #1) > Did you check that 'xdg-mime' is installed on the machine? Why is this an > issue for Platform-IDE? xdg-mime is indeed not installed. But this environment is still a legal one for Eclipse Platform and is a typical one on CI, and the code that tries to invoke xdg-mime should be guarded to avoid such exceptions in case xdg-mime is not there.
We are seeing the same error on a Ubuntu 18.04 (in a Jenkins agent)
same error on RHEL 7