Not able to upload code, get error :


Please notice that i am a beginner…

I am trying to Upload this code(see below) through Arduino IDE,(was first try with VisualMicro), and i cannot upload it on my Arduino/Uno and Longrunner CNC shield (driver A4988).

It seem that my last sketch still use the serial port .
I was using Grbl controller to control manually my stepper motor; these are the motors I installed for my DIY telescope motorization.

The error seem to point Java…(see error code down the page)

// Visual Micro is in vMicro>General>Tutorial Mode
    Name:       Filterwheelarduino.ino
    Created:	2019-09-09 08:56:35
    Author:     DESKTOP-DUGTL0G\Regor

// Define User Types below here or use a .h file
int CurrentFilter = 0;

// Define Function Prototypes that use User Types below here or use a .h file

// Define Functions below here or use other .ino or cpp files

// The setup() function runs once each time the micro-controller starts
void setup()


// Add the main program code into the continuous loop() function
void loop()
  String cmd;

  if (Serial.available() > 0) {
    cmd = Serial.readStringUntil('#');
    if (cmd == "GETFILTER") {
      Serial.print(CurrentFilter): Serial.prntln("#");
      else if (cmd == "FILTER0") MoveFilter(0);
      else if (cmd == "FILTER1") MoveFilter(1);
      else if (cmd == "FILTER2") MoveFilter(2);
      else if (cmd == "FILTER3") MoveFilter(3);

  void MoveFilter(int pos) {
  //do stepper motor stuff
  CurrentFilter = pos;

Error code
	at cc.arduino.Compiler.callArduinoBuilder(
	at cc.arduino.Compiler.loadPreferences(
Caused by: Cannot run program "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\arduino-builder": CreateProcess error=2, Le fichier spécifié est introuvable
	at java.lang.ProcessBuilder.start(
	at cc.arduino.Compiler.callArduinoBuilder(
	... 5 more
Caused by: CreateProcess error=2, Le fichier spécifié est introuvable
	at java.lang.ProcessImpl.create(Native Method)
	at java.lang.ProcessImpl.<init>(
	at java.lang.ProcessImpl.start(
	at java.lang.ProcessBuilder.start(
	... 7 more

Try reinstalling the Arduino IDE. This time, try not using the Windows App Store version. You can get the normal version of the Arduino IDE by clicking either the "Windows Installer, for Windows XP and up" or the "Windows ZIP file for non admin install" links (NOT the "Get" button) on this page: