Unable to install Arduino IDE:

Hi,

I am new to Arduino.

Initially, I installed Arduino IDE and was trying to add ESP Board to it but it was having several errors.
After that, I installed and uninstalled the IDE several times, once by directly deleting the folder.

And now when I am trying the install again it shows either a pop up stating 'the Arduino IDE is already installed, please uninstall that first' or it even doesn't get started.

Please help me out I am stuck from 3-4 days now.

Use the "Windows ZIP file for non admin install" download.

Hi Pert,

I did the same thing now but as already stated, by clicking the 'Arduino' application, a pop up opens where the Arduino usually starts. It goes through 'Installing packages-Preparing boards-Starting' and then suddenly everything disappears.

I can't track it even in Task manager or in control panel. FYI I am using a 64-bit system with Windows 8.1 OS.

Hi Paraagsj

Windows 8 had stricter software / driver control but Perts solution should have worked.

What security do you use on your computer as you may need to add the Arduino software to the exclusions / whitelist.

Also what is it a proper computer or a tablet you are using ?
Tablets with windows 8 might face additional problems.

What is your user level on that computer ( USER / USER WITH ADMIN RIGHTS / FULL ADMINISTRATOR ) ?

Is it YOUR computer or a loaner / educational / business as they too may have policies in place that might restrict installations ?

Hi ballscrewbob,

I don't think security will be an issue here.My system has only windows defender as far as security aspects are concerned.

Secondly, it is my personal Laptop of 64 bit where I am having the full Admin rights.

Run arduino_debug.exe from the command line and then post the output here using code tags (</> button on the toolbar).

I had arduino ide downloaded on my mac, for what ever reason it wasn't uploading sketches to a mega. So i tried the computer at work, same sketch, and it uploaded no problem. So i figured there is probably something wrong with my IDE... i deleted everything i could find relating to arduino from my mac book...

went back to arduino IDE download page, click on the mac tab, click download, and nothing happens.. the page will act like its loading for a minute then nothing, sometimes it will refresh the page, but never actually downloads anything.

any suggestions?

mikedixon243:
I had arduino ide downloaded on my mac, for what ever reason it wasn't uploading sketches to a mega. So i tried the computer at work, same sketch, and it uploaded no problem. So i figured there is probably something wrong with my IDE... i deleted everything i could find relating to arduino from my mac book...

went back to arduino IDE download page, click on the mac tab, click download, and nothing happens.. the page will act like its loading for a minute then nothing, sometimes it will refresh the page, but never actually downloads anything.

any suggestions?

That's off topic for this thread. Please start a new thread.

pert:
Run arduino_debug.exe from the command line and then post the output here using code tags (</> button on the toolbar).

Hi Pert,

Please find the below text as you have asked for

<D:\ESP\arduino-1.8.5>arduino_debug
Looking for library 'user32'
Adding paths from jna.library.path: null
Trying user32.dll
Found library 'user32' at user32.dll
DPI detection failed, fallback to 96 dpi
Looking for library 'shell32'
Adding paths from jna.library.path: null
Trying shell32.dll
Found library 'shell32' at shell32.dll
Looking for library 'Ole32'
Adding paths from jna.library.path: null
Trying Ole32.dll
Found library 'Ole32' at Ole32.dll
Loading configuration...
Initializing packages...
Preparing boards...
Starting...
java.io.FileNotFoundException: C:\Users\PARAG\AppData\Local\Arduino15\preference
s.txt (Access is denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:162)
at processing.app.legacy.PApplet.createWriter(PApplet.java:559)
at processing.app.PreferencesData.save(PreferencesData.java:118)
at processing.app.Base.handleOpen(Base.java:855)
at processing.app.Base.handleOpen(Base.java:824)
at processing.app.Base.handleOpen(Base.java:820)
at processing.app.Base.handleNew(Base.java:759)
at processing.app.Base.(Base.java:465)
at processing.app.Base.main(Base.java:144)
java.lang.RuntimeException: Couldn't create a writer for C:\Users\PARAG\AppData
Local\Arduino15\preferences.txt
at processing.app.legacy.PApplet.createWriter(PApplet.java:571)
at processing.app.PreferencesData.save(PreferencesData.java:118)
at processing.app.Base.handleOpen(Base.java:855)
at processing.app.Base.handleOpen(Base.java:824)
at processing.app.Base.handleOpen(Base.java:820)
at processing.app.Base.handleNew(Base.java:759)
at processing.app.Base.(Base.java:465)
at processing.app.Base.main(Base.java:144) >

I suspect there is a permissions issue where the Arduino IDE can't access or create the file C:\Users\PARAG\AppData\Local\Arduino15\preferences.txt.

A workaround is to use the Arduino IDE in portable mode:

That will cause the preferences.txt file to be located in the portable subfolder of the Arduino IDE installation folder rather than C:\Users\PARAG\AppData\Local\Arduino15. So then you only need to be sure that the Arduino IDE is installed in a location where your user has the appropriate permissions. It looks like you have it installed at D:\ESP\arduino-1.8.5, so that should be fine.

That's not to say you can't resolve the actual problem causing the IDE to not start but sometimes it's nice to have an alternative solution available.

You could always use the online editor. Works right out of the box except you need to install the plugin.

pert:
I suspect there is a permissions issue where the Arduino IDE can't access or create the file C:\Users\PARAG\AppData\Local\Arduino15\preferences.txt.

A workaround is to use the Arduino IDE in portable mode:
https://www.arduino.cc/en/Guide/PortableIDE

That will cause the preferences.txt file to be located in the portable subfolder of the Arduino IDE installation folder rather than C:\Users\PARAG\AppData\Local\Arduino15. So then you only need to be sure that the Arduino IDE is installed in a location where your user has the appropriate permissions. It looks like you have it installed at D:\ESP\arduino-1.8.5, so that should be fine.

That's not to say you can't resolve the actual problem causing the IDE to not start but sometimes it's nice to have an alternative solution available.

Hi Pert,

Thanks a lot. Finally, I am able to see the Arduino IDE opening on my laptop. Looking forward to exploring more of Arduino. Thanks again!!!

Glad to hear it's working. Enjoy!
Per