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
at cc.arduino.Compiler.callArduinoBuilder(
at cc.arduino.Compiler.loadPreferences(
Caused by: Cannot run program “C:\Program Files\Arduino\arduino-builder”: CreateProcess error=193, %1 is not a valid Win32 application
at java.lang.ProcessBuilder.start(
at cc.arduino.Compiler.callArduinoBuilder(
… 6 more
Caused by: CreateProcess error=193, %1 is not a valid Win32 application
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(
at java.lang.ProcessImpl.start(
at java.lang.ProcessBuilder.start(
… 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:

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