-
-
Notifications
You must be signed in to change notification settings - Fork 7k
java.lang.NullPointerException on 1.8.7 #8229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @jaxxzer , |
I do not have this issue. Which java version did you install? |
What do you know, it works! Re the pacman installation...
Done so, no difference.
It was installed as a dependency of the arduino package.
|
I have the same java version report. I suggest installing java 7 and 8 manually. |
I use 1.8.7 on Ubuntu 18.04 x86 64 bit. Works great. Arduino.cc version has java bundled with it in the "java" folder. Here's Java the version info:
Highly recommend getting the officially supported version from Arduino's downloads page. 1.8.7 was developed and tested against this version of Java, so if you simply download and use the supported version it should use the correct java that comes as part of the package. |
I have the same issue, same version of Java, same version of the IDE. Installing the Linux x86_64 build solved the issue. |
Install arduino-avr-core package. It should work., more info here |
I think the problem is, that on a fresh install, with no board package installed, the IDE crashes. ArchLinux does not ship the default board package, because we package our own with upstream avr-gcc. But this package is not installed by default, as it is optional for those people who want to stick to the older arduino core. You can install it manually in the board manager. The problem here is, that on the first startup none of both exists and the IDE crashes. There is also a bugreport with more details here: It seems that a special directory must be created first. This issue should be fixed in the IDE. |
please how Install arduino-avr-core package |
@dianamazo In ArchLinux it is |
@facchinm People are contacting me over and over again that their IDE does not start. As explained earlier this is a bug in the IDE that should get fixed. I do not want to make the avr core a normal dependency, as I had several reasons to make it optional and its no excuse to fix this issue. Its very likely that the fix is quite simple. |
I agree with @NicoHood the ide should not assume a default board is there. |
@NicoHood there's a bit of logic that requires at least on platform to be installed. It could be fixed easily with a fake dependency that just injects a fake board; this would becomes a compulsory dependency, while marking |
I have this issue on Windows 10 with version 1.8.8 (installation package). |
Win 7, Ver 1.8.8 same message. What kind of problems are going to happen that I can not see ? |
Just experienced this on Win10 Pro x64, Version 1.8.8. Seemed to fix itself after I just went into the board manager once. |
I solved the problem by installing arduino-avr-core Manjaro:
|
@wallanpereira This has been mentioned already, but does not solve the problem. The Arduino team should fix this bug. All new users got this problem. |
@NicoHood This is good, thanks for the info. |
Thanks for patching this long time bug! :-) |
Thanks, this fixed it for me. |
Still got the same (?) bug on fresh install, 1.8.13:
|
@ZoomRmc, you're seeing a different problem. The symptom (NullPointerException) is similar, but the location where it happened is totally different. I'm pretty sure that you're seeing the problem that is fixed by #10922. Maybe you could try the version from that PR (see the comment by ArduinoBot) to see if that fixes your problem and report your findings in that PR? Thanks! |
On archlinux:
The text was updated successfully, but these errors were encountered: