On an up-to-date amd64 Debian unstable system as of today, arduino fails
to start like this:
arduino
Picked up JAVA_TOOL_OPTIONS:
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::loadLibrary has been called by processing.app.Platform in an unnamed module (file:/usr/share/arduino/lib/arduino-core.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
java.lang.NoClassDefFoundError: org/bouncycastle/asn1/cryptlib/CryptlibObjectIdentifiers
at org.bouncycastle.openpgp.PGPUtil$2.<init>(Unknown Source)
at org.bouncycastle.openpgp.PGPUtil.<clinit>(Unknown Source)
reassign -1 src:bouncycastleBug #1099511 [arduino] newest releases of bc* java libraries cause arduino to fail to start
affects -1 arduinoBug #1099511 [src:bouncycastle] newest releases of bc* java libraries cause arduino to fail to start
found -1 1.80-1Bug #1099511 [src:bouncycastle] newest releases of bc* java libraries cause arduino to fail to start
On Tue, 4 Mar 2025 11:51:06 +0100 Emmanuel Bourg <ebourg@apache.org> wrote:
On 04/03/2025 11:33, Jonas Smedegaard wrote:
Thanks for the clarification.
I have reassigned accordingly: If I understand you correctly, the bug
(of changing without coordination with reverse dependencies) is in src:bouncycastle, even if the best fix might be a change in arduino.
Actually the issue is the classpath used by arduino, it contains only bcprov.jar and should now also include bcutil.jar. This can't be done at the src:bouncycastle level and must be changed in src:arduino, here:
https://salsa.debian.org/electronics-team/arduino/arduino/-/blob/debian/2%251.8.19+dfsg1-2/debian/arduino.links?ref_type=tags#L25
The arduino package will also require a dependency on libbcutil-java.
Hi Emmanuel,
thanks for the hint. I built a package with said tweaks enabled;
however, it still fails to start:
$ arduino
Picked up JAVA_TOOL_OPTIONS:
Error: main class processing.app.Base can't be initialized
Reason: java.lang.NoClassDefFoundError:
processing/app/helpers/UserNotifier
Do you have any more pointers so I can fix this in time for trixie ?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 491 |
Nodes: | 16 (2 / 14) |
Uptime: | 132:59:03 |
Calls: | 9,690 |
Files: | 13,728 |
Messages: | 6,177,733 |