Skip to content

NullPointerexception unless run as admin #1900

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

Closed
ejb1123 opened this issue Feb 27, 2014 · 17 comments
Closed

NullPointerexception unless run as admin #1900

ejb1123 opened this issue Feb 27, 2014 · 17 comments
Assignees
Labels
Component: IDE The Arduino IDE OS: Windows Specific to the Windows version of the Arduino IDE
Milestone

Comments

@ejb1123
Copy link

ejb1123 commented Feb 27, 2014

Windows 7
using the debug exe in the nightly build.
When stating the IDE I get this.

Exception in thread "main" java.lang.NullPointerException
at processing.app.I18n._(I18n.java:56)
at processing.app.Base.getSettingsFolder(Base.java:1976)
at processing.app.Base.getSettingsFile(Base.java:1993)
at processing.app.Preferences.init(Preferences.java:258)
at processing.app.Base.main(Base.java:143)

@matthijskooijman
Copy link
Collaborator

What version of the IDE are you using? What OS?

@ffissore
Copy link
Contributor

Also: how do you start the IDE?
Hint: if you are using eclipse, you have to setup the "launcher" so that its working directory is the one where the IDE was built using ant

@ffissore ffissore added the IDE label Feb 27, 2014
@ejb1123
Copy link
Author

ejb1123 commented Feb 27, 2014

i am launching the debug version in the nightly build on Windows 7. The same version work on my laptop that also runs Windows 7

@ffissore
Copy link
Contributor

It seems the latest nightly builds have had some issues, I suspect the file hosting. Related issue: #1901 (comment). Tomorrow newer nightly builds will be packaged: I'll keep you posted

@ejb1123
Copy link
Author

ejb1123 commented Feb 28, 2014

Even after downloading the nightly build today I still get the same error. The windows download does not seem broken. I think it can't create the folder in C:\Users\myusername\AppData\Roaming".
Edit this idea is probably wrong.

@ffissore
Copy link
Contributor

ffissore commented Mar 1, 2014

Nightly builds have been restored. Can you try again?

@ejb1123
Copy link
Author

ejb1123 commented Mar 1, 2014

Ok great I will try again.

@ejb1123
Copy link
Author

ejb1123 commented Mar 3, 2014

The error still exists.

@ejb1123
Copy link
Author

ejb1123 commented Mar 25, 2014

Can i get any help? I don't understand java.

@ffissore
Copy link
Contributor

Sorry for the lack of updates. The error seems related to missing translation files. Are you experiencing it with the nighly builds only, or even with the 1.5.6-r2 version?

@ejb1123
Copy link
Author

ejb1123 commented Mar 25, 2014

I experience it with both builds.

@ffissore
Copy link
Contributor

I still cannot understand the cause. Can you rename folder C:\users\USERNAME\AppData\Roaming\Arduino15 to C:\users\USERNAME\AppData\Roaming\Arduino15_backup and retry?

@ejb1123
Copy link
Author

ejb1123 commented Mar 25, 2014

The foler does not exist in

C:\users\MYUSER\AppData\Roaming

but it does exist in

C:\users\Administrator\AppData\Roaming

In C:\users\MYUSER I see the AppData\Roaming folder and I can write to it.
I can't see the Application Data Folder. And can't navigate to it in the explorer in any way, tried typing in the location but cant access it.

@ffissore
Copy link
Contributor

Are you running the IDE as Administrator?

@ffissore
Copy link
Contributor

I mean: it's not needed and you should not.

@ejb1123
Copy link
Author

ejb1123 commented Mar 26, 2014

if I do not run the ide as admin I get the NullPointerexception.
I have to right click and click run as admin

@ffissore ffissore added the OS: Windows Specific to the Windows version of the Arduino IDE label May 28, 2015
@ffissore ffissore self-assigned this Jul 1, 2015
@ffissore
Copy link
Contributor

ffissore commented Jul 3, 2015

@ejb1123 can you give a try to latest hourly build? http://www.arduino.cc/en/Main/Software#hourly

@ffissore ffissore closed this as completed Aug 6, 2015
@ffissore ffissore added this to the Release 1.6.6 milestone Aug 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE OS: Windows Specific to the Windows version of the Arduino IDE
Projects
None yet
Development

No branches or pull requests

3 participants