Go Down

Topic: Cannot launch IDE (Read 704 times) previous topic - next topic

Touni

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.<init>(Base.java:197)
        at processing.app.Base.main(Base.java:140)

bliviudaniel

#1
Oct 18, 2017, 09:26 am Last Edit: Oct 18, 2017, 10:53 am by bliviudaniel
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.<init>(Base.java:201)
        at processing.app.Base.main(Base.java:144)

c:\arduino-1.8.5>

ballscrewbob

I would suggest you both read THIS POST FIRST

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

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Touni

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.

ballscrewbob

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 ?

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

bliviudaniel

Quote
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.

Touni

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 :)

ballscrewbob

@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.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Touni

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.

ballscrewbob

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.


It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up