I installed Arduino IDE using synaptic. All appeared to go well. An entry was made in Menu>Utility>Arduino IDE. When this is pressed Arduino IDE initially opens then appears to hang. The exec line in /usr/share/applications/arduino,desktop is /usr/bin/arduino %f
. I tried running this in a terminal. the output is shown below.
Code: Select all
# /usr/bin/arduino %f
/usr/bin/arduino: line 29: dpkg-architecture: command not found
Picked up JAVA_TOOL_OPTIONS:
A small box also opened with the message Failed to open sketch "%f"
.
I tried to run the command again but without the %f. Again the output from the terminal is shown bellow.
Code: Select all
# /usr/bin/arduino
/usr/bin/arduino: line 29: dpkg-architecture: command not found
Picked up JAVA_TOOL_OPTIONS:
java.lang.UnsatisfiedLinkError: no astylej in java.library.path: /usr/lib/jvm/java-17-openjdk-amd64/lib/server:/usr/lib/jvm/java-17-openjdk-amd64/lib:/usr/lib/jvm/java-17-openjdk-amd64/../lib:/usr/lib/jni/:/usr/lib/:/usr/lib/jni:/lib:/usr/lib:/root/my-applications/lib:/usr/local/lib:/usr/lib/jvm/java-1.17.0-openjdk-amd64/lib/server:/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2434)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:2006)
at cc.arduino.packages.formatter.AStyleInterface.<clinit>(AStyleInterface.java:44)
at cc.arduino.packages.formatter.AStyle.<init>(AStyle.java:52)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
at java.base/java.lang.Class.newInstance(Class.java:645)
at processing.app.Editor.getOrCreateToolInstance(Editor.java:975)
at processing.app.Editor.createToolMenuItem(Editor.java:955)
at processing.app.Editor.addInternalTools(Editor.java:988)
at processing.app.Editor.buildToolsMenu(Editor.java:715)
at processing.app.Editor.buildMenuBar(Editor.java:543)
at processing.app.Editor.<init>(Editor.java:290)
at processing.app.Base.handleOpen(Base.java:873)
at processing.app.Base.handleOpen(Base.java:859)
at processing.app.Base.handleOpen(Base.java:855)
at processing.app.Base.handleNew(Base.java:794)
at processing.app.Base.<init>(Base.java:482)
at processing.app.Base.main(Base.java:141)
#
I am not sure what the above means. I'd be obliged if anybody could suggest how I could get Arduino IDE to work in Bookworm.
Regards,
Ken.