Cannot launch IDE

Hello,

I am having huge difficulties to launch Arduino IDE. When trying to launch it just shows starting window briefly and then it goes away. I run arduino_debug.exe in cmd and got this out of it. It seems the system cannot find specific path.

I am running 64bit Win7.

Any idea how to resolve this?

Thanks!


C:\Program Files (x86)\Arduino>arduino_debug.exe
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
Looking for library 'kernel32'
Adding paths from jna.library.path: null
Trying kernel32.dll
Found library 'kernel32' at kernel32.dll
com.sun.jna.platform.win32.Win32Exception: The system cannot find the path specified.
at com.sun.jna.platform.win32.Shell32Util.getFolderPath(Shell32Util.java:48)
at com.sun.jna.platform.win32.Shell32Util.getFolderPath(Shell32Util.java:61)
at cc.arduino.os.windows.Win32KnownFolders.getDocumentsFolder(Win32KnownFolders.java:71)
at processing.app.windows.Platform.recoverDefaultSketchbookFolder(Platform.java:76)
at processing.app.windows.Platform.init(Platform.java:55)
at processing.app.Base.(Base.java:197)
at processing.app.Base.main(Base.java:140)

I have exacting the same problem in windows 7, 64 bit. I downloaded arduino-1.8.5.zip for Windows and unzipped. When I run arduino_debug.exe I get the same errors:
c:\arduino-1.8.5>arduino_debug.exe
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
Looking for library 'kernel32'
Adding paths from jna.library.path: null
Trying kernel32.dll
Found library 'kernel32' at kernel32.dll
com.sun.jna.platform.win32.Win32Exception: The system cannot find the file speci
fied.
at com.sun.jna.platform.win32.Shell32Util.getFolderPath(Shell32Util.java
:48)
at com.sun.jna.platform.win32.Shell32Util.getFolderPath(Shell32Util.java
:61)
at cc.arduino.os.windows.Win32KnownFolders.getDocumentsFolder(Win32Known
Folders.java:71)
at processing.app.windows.Platform.recoverDefaultSketchbookFolder(Platfo
rm.java:76)
at processing.app.windows.Platform.init(Platform.java:55)
at processing.app.Base.(Base.java:201)
at processing.app.Base.main(Base.java:144)

c:\arduino-1.8.5>

I would suggest you both read below first

Please take a few moments to Learn and Use the Forum.

Hello, Welcome to the Arduino Forum. This guide explains how to get the best out of this forum. Please read and follow the instructions below. Being new here you might think this is having rules for the sake of rules, but that is not the case. If you don’t follow the guidelines all that happens is there is a long exchange of posts while we try to get you to tell us what we need in order to help you, which is frustrating for you and frustrating for us. The people who try to help with your project.

It will help you get the very best out of the forum in the future.

  • Mention if you are using AI generated code it is important information.
  • Your OS and version can be valuable information, please include it along with extra security you are using. Antivirus etc.
  • Always list the version of the IDE you are using and the board version if applicable.
  • Use quote or CODE tags to add error messages as an attachment NOT a picture.
  • How to insert an image into your post. ( Thanks sterretje )
  • Add your sketch where applicable but please use CODE TAGS
  • Add a SCHEMATIC were needed even if it is hand drawn.
  • Add working links to any specific hardware as needed (NOT links to similar items)
  • Duplicate accounts are NOT allowed and any extra may be deleted.
  • Remember that the people trying to help cannot see your problem so give as much information as you can.

COMMON ISSUES

  • Ensure you have FULLY inserted the USB cables.
  • Check you have a COMMON GROUND where required. ( Thanks Perry)
  • Where possible use USB 2.0 ports or a USB 2.0 POWERED HUB to rule out USB 3.0 issues.
  • Try other computers where possible.
  • Try other USB leads where possible.
  • You may not have the correct driver installed. CH340/341 or CP2102 or FT232 VCP Drivers - FTDI
  • There may be a problem with the board check or remove your wiring first.
  • Remove any items connected to pins 0 and 1.

COMPUTER RELATED

  • Close any other serial programs before opening the IDE.
  • Ensure you turn off any additional security / antivirus just to test.
  • There may be a problem with the PC try RESTARTING it.
  • You may be selecting the wrong COM port.
  • Avoid cloud/network based installations where possible OR ensure your Network/Cloud software is RUNNING.
  • Clear your browsers CACHE.
  • Close the IDE before using any other serial programs.
  • Preferably install IDE’s as ADMINISTRATOR or your OS equivalent

ARDUINO SPECIFIC BOARDS

  • CH340/341 based clones do not report useful information to the “get board info” button.
  • NANO (Old Types) some require you to use the OLD BOOTLOADER option.
  • NANO (ALL Types) See the specific sections lower in the forum.
  • NANO (NEW Types) Install your board CORE’s.
  • Unless using EXTERNAL PROGRAMMERS please leave the IDE selection at default “AVRISP mkII”.
  • Boards using a MICRO USB connector need a cable that is both DATA and CHARGE. Many are CHARGE ONLY.

CREATE editor install locations.

  • On macOs ~/Applications/ArduinoCreateAgent-1.1/ArduinoCreateAgent.app/Contents/MacOS/config.ini
  • On Linux ~/ArduinoCreateAgent-1.1/config.ini
  • On Windows C:\Users[your user]\AppData\Roaming\ArduinoCreateAgent-1.1

Performing the above actions may help resolve your problem without further help.

Language problem ?

Try a language closer to your native language:

Thanks to all those who helped and added to this list.

Also what security software are you running as that can interrupt the program if it is overly aggressive.

Well I read that post and found no help from it. I did that already before sending my post here. If you mean that I should ask Google first... well I did that for a good 2-3 hours and tried several thinks which supposed to solve this issue but none of them worked. So eventually I tried to ask some help from here. Maybe I am not that good with the Google...

Anyway I am still trying to find a solution simultaneously from Google and best I found is this thread:
https://forum.arduino.cc/index.php?topic=455104.0

However do not have Win10 and I have no idea what "adding document location to library" means and cannot find the answer from Google either...

By security software do you mean antivirus? That would be McAfee.

is it your very own computer from new ?

Yes try turning OFF mcaffee for testing.

Have you changed the sketches location at all ?

Is it a FULL IDE install or a portable (unzipped) version ?

Did or do you have any other IDE software also installed ?

When did you last do a decent clean up and/or a registry scan ?

I would suggest you both read THIS POST FIRST

Did it, of course. I did something wrong in my first post? Maybe I should have used code style to post the log from windows console, otherwise I don't know what I did wrong :o

Thanks for the answer anyway.

The computer is new.
I took the zip Arduino IDE and unzipped it.
I have Eclipse IDE on my PC.
I didn't change sketches location, because Arduino IDE don't starts.
I created the portable folder by hand, the IDE still don't starts and portable folder is not populated.

Maybe it's not working because I don't have admin rights on the computer and the IDE is trying to create some folders in forbidden places...I will check it on another computer where I have admin rights.

I finally found out what is wrong in my setup. This is a corporate laptop (I have admin rights so no problems there) and some stuff is controlled by my IT department.

For some reason Arduino IDE wants to setup libraries and sketch folder to my network drive which is not available without VPN connection (doing this Arduino stuff from home as proper employee should ;)). This is first installation/program which is creating some folders to network drive so I did not know from where to search the problem. All other programs are asking where to create user folders or those are automatically created to local hard drive. As the Arduino IDE cannot connect to my company network drive without VPN it closes itself without any notification.

This is now just a little problematic when I do not have network available. Now I am trying to find how can I set it up so that those folders are in my hard drive. So far I have had no luck with that...

Step by step getting closer to the solution :slight_smile:

@Touni

It sounds like you may be better with the unzipped version rather than a full install.
Not sure why the full install wants to set up outside the local drive so as you say maybe an IT dept. setup issue.

Corporate and Educational boxes can be very fiddly to set up. Also be aware that a "user" with admin rights is NOT THE SAME as a full administrator.

Attaching some clean up help in case you want to try the unzipped version.

CLEAN UP BEFORE INSTALLING ANOTHER COPY OF THE IDE OR ARDUINO CREATE.pdf (345 KB)

Thanks ballscrewbob! I tired that unzipped already some time ago but it did not work... until now when I did that clean up. Thanks for those instructions! Now it works without network drive.

You are most welcome Touni

I play a lot with the different Arduino software so those destructions were made to help me but often come in useful for others too.

I have a similar problem in that the Arduino 1.8.9 IDE starts the splash screen then disappears. I tried run the arduino_debug.exe and I get a message but the program goes away as well. I can't read that fast. I have reloaded three times today with both the Zip and Exe versions. I went to C:\user\paul\appdata\local\arduino15 and removed all but the preferences.txt file. Restarted the computer with no result. Can anyone help

Paul