Unable to Upload to mBot without opening as Administrator

Hello Everyone,

The mBlock website keeps pointing me to this forum, so I'm hoping someone can help me.

I'm unable to upload to the mBot I have through the mBlock Program.

I get the following error:

C:\Program Files (x86)\mBlock\Arduino\arduino_debug.exe --upload --board arduino:avr:uno --port COM3 --verbose --preserve-temp-files C:\Users\student2022\AppData\Roaming\com.makeblock.Scratch3.4.5\Local Store\scratchTemp\project_Untitled1_1\project_Untitled1_1.ino
Loading configuration...
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at processing.app.windows.Platform.getFolderPathFromRegistry(Platform.java:70)
at processing.app.windows.Platform.recoverSettingsFolderPath(Platform.java:55)
at processing.app.windows.Platform.init(Platform.java:50)
at processing.app.Base.guardedMain(Base.java:153)
at processing.app.Base.main(Base.java:137)

Though, when I open mBlock as Administrator uploading works fine.

Also I used in the past mBlock version 3.0.0 works without a problem.

The problem started with Version 3.3.5 when updating from 3.0.0.

I've given the student user Admin permissions to the Folder for mBlock, but this didn't help.

Does anyone have an idea of what I should do next?

Many thanks in advance,

There are TWO admin levels if its windows.

One is a sudo ADMIN and the other is FULL admin.

However if its for a student you should NOT give him FULL admin rights.

Sounds like you are in an EDU environment so probably better to talk to your admin about how to allow specific folders rights or a true roaming profile.

Forgot to add.
Fully updated Windows 10.

The students are using a Standard account.

I don't believe the issue is with folder permissions.

I think it's something to do with Java.

Any other suggestions?


So you know the issue, why are you asking here?

Because I can't find a fix...

Here is a tested solution:

mBlock3 cannot upload program to robot using Arduino

Install mBlock3 (mBlock_win_V3.4.11.exe) with all the default settings.
Target folder is C:\Program Files (x86)\mBlock
After installing,
Delete the Arduino folder in C:\Program Files (x86)\mBlock\

Install Arduino ( arduino-1.8.5-windows.exe) but this time change the

Destination folder to C:\Program Files (x86)\mBlock\Arduino
The default is C:\Program Files (x86)\Arduino
This will replace the Arduino folder you have deleted earlier.

mblock3 should now be able to upload the program