I use arch linux. I installed arduino ide with pacman. When I try to run it, loading window will show for few socends and than program crashes. There are logs:
john@arch-thinkpad ~ [1]> arduino
Picked up JAVA_TOOL_OPTIONS:
Set log4j store directory /home/john/.arduino15
java.lang.NullPointerException
at processing.app.Base.rebuildProgrammerMenu(Base.java:1705)
at processing.app.Base.<init>(Base.java:286)
at processing.app.Base.main(Base.java:150)
john@arch-thinkpad ~ [255]>
john@arch-thinkpad ~> arduino --version
Picked up JAVA_TOOL_OPTIONS:
Loading configuration...
Initializing packages...
Preparing boards...
Arduino: 1.8.13
What should I do to fix it ?
Thank you for your help
-
Delete your preferences.txt file.Majenko– Majenko2020年08月14日 17:54:10 +00:00Commented Aug 14, 2020 at 17:54
2 Answers 2
I had to install arduino-avr-core
package:
sudo pacman -S arduino-avr-core
Now it works fine
The first thing to do is delete your preferences.txt
file. This is the most common cause of startup issues - some corruption or an invalid setting in that file can break the IDE completely.
rm ~/.arduino15/preferences.txt
If that doesn't fix it then you can delete your entire Arduino working directory, which will remove all installed cores and boards and give you a fresh installation:
rm -rf ~/.arduino15
-
There was some corruption to the
package_index.json
a little while ago - mid July - perhaps the OP was affected by that, even though it though the post phrasing suggests that they have only just installed the Arduino IDE. Anyway, the fix for that issue was to remove file~/.arduino15/package_index.json
and remove folder~/.arduino15/cache
- which would be worth trying before deleting the preferences file or entire settings directory if it is an old/configured install.Peter Feerick– Peter Feerick2020年08月16日 12:52:44 +00:00Commented Aug 16, 2020 at 12:52 -
1Thank you for your answer but it did not change anything and issue still remains.Jan Černý– Jan Černý2020年08月18日 22:41:22 +00:00Commented Aug 18, 2020 at 22:41