I tried to install Processing 4.4.4 on Ubuntu 24.04 (latest version at time of writing). The only option seems to be via a snap. However, the integration into Ubuntu is poor: on startup, I regularly see exceptions (attached), and it is impossible to associate .pde files to be opened with processing. Also dragging a .pde file into the processing window will only open that simngle file, even if it’s part of a bigger project … trying to run it, will subsequently complain about missing files.
I can only speculate that it’s due to the snap’s strict confinement? In any case: How to get a working and USABLE processing inmstallation on Ubuntu, in particular if you are a beginner (like my students).
These are the exceptions generated when starting processing:
Jun 17, 2025 6:02:02 PM java.util.prefs.FileSystemPreferences$1 run
WARNING: Couldn’t create user preferences directory. User preferences are unusable.
Jun 17, 2025 6:02:02 PM java.util.prefs.FileSystemPreferences$1 run
WARNING: java.io.IOException: No such file or directory
java.lang.reflect.InaccessibleObjectException: Unable to make field private static java.lang.String sun.awt.X11.XToolkit.awtAppClassName accessible: module java.desktop does not “opens sun.awt.X11” to unnamed module @4aae4e96
And these repeat every 30 sec while processing is running:
Jun 17, 2025 6:02:34 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 2.
Jun 17, 2025 6:02:34 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn’t flush user prefs: java.util.prefs.BackingStoreException: Couldn’t get file lock.
Jun 17, 2025 6:03:04 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 2.
Jun 17, 2025 6:03:04 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn’t flush user prefs: java.util.prefs.BackingStoreException: Couldn’t get file lock.
Jun 17, 2025 6:03:34 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 2.
Jun 17, 2025 6:03:34 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn’t flush user prefs: java.util.prefs.BackingStoreException: Couldn’t get file lock.
Jun 17, 2025 6:04:04 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 2.
Jun 17, 2025 6:04:04 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn’t flush user prefs: java.util.prefs.BackingStoreException: Couldn’t get file lock.
Jun 17, 2025 6:04:34 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 2.
Jun 17, 2025 6:04:34 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn’t flush user prefs: java.util.prefs.BackingStoreException: Couldn’t get file lock.
Jun 17, 2025 6:05:04 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 2.
Jun 17, 2025 6:05:04 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn’t flush user prefs: java.util.prefs.BackingStoreException: Couldn’t get file lock.
Jun 17, 2025 6:05:34 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock User prefs. Unix error code 2.
Jun 17, 2025 6:05:34 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn’t flush user prefs: java.util.prefs.BackingStoreException: Couldn’t get file lock.