Java run errors

Hi Arduino gang,
I’m almost at my wits end here after all day trying to sort out driver issues to get it finally sorted and now have silly programming errors.
Can someone please please assist.
When I try to verify any code I get the following message (it appears and highlights the top line of my code no matter what I have in it).

I am using an Ardunio Mega.
I was on my laptop (Windows 10) and I was having driver issues (port not selectable in IDE), but have no issues verifying code.
I switched to the home PC (Windows Vista [!]) and ports were selectable on IDE, but now (with the exact same code) I am getting the following errors.

If someone could suggest a fix for the laptop or PC I would be very grateful.
*arduino beginner
processing.app.debug.RunnerException
at cc.arduino.Compiler.callArduinoBuilder(Compiler.java:317)
at cc.arduino.Compiler.loadPreferences(Compiler.java:216)
at cc.arduino.Compiler.build(Compiler.java:175)
at processing.app.SketchController.build(SketchController.java:664)
at processing.app.SketchController.exportApplet(SketchController.java:689)
at processing.app.Editor$UploadHandler.run(Editor.java:2055)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Cannot run program “C:\Program Files\Arduino\arduino-builder”: CreateProcess error=193, %1 is not a valid Win32 application
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
at cc.arduino.Compiler.callArduinoBuilder(Compiler.java:297)
… 6 more
Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
… 8 more

Recent versions of the Arduino IDE require Windows 7 or newer. My notes indicate that the last Arduino IDE version compatible with Windows Vista is Arduino IDE 1.8.9. You can download it from this page:
https://www.arduino.cc/en/Main/OldSoftwareReleases#1.5.x

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.