Odd java error messages in Arduino Code

zachmckee33

New member
I am using the Teensy 4.0 for a signal processing project, coding in Arduino on Windows. Everything was working fine until sometime last week, when I started getting Java error messages pointing to files that should be in the Teensy download package. I've uninstalled and reinstalled the Teensy library multiple times, and I've even deleted everything and set up the board from scratch, and the error has persisted. I am using a couple third party libraries so I initially thought it could be an issue with that, but it doesn't seem t be. Could anyone help me solve this? Very urgent, as this is a school project and we need to test this week lol. I've attached the code file and error message. Thanks!
errormsg.png
 

Attachments

  • algorithm_1.ino
    5.4 KB · Views: 51
That is a an IDE build problem. IDE 2? Close it down and restart it perhaps.

But the indicated teensy_post_compile.exe isn't found where it should be.

If that doesn't work, then the problem is possible the file was wrongly removed by an antivirus program.

Assuming building this and other sketches has worked before?

To correct it may take going to the Board Manager and doing a remove of TeensyDuino and then reinstalling.
 
This look like a very old version of Arduino IDE. We do still support several specific old versions (but not all). Can you tell us which specific version you have? In old Arduino, find this by Help > About. The About message in old pre-2.0 IDE should also say which version of Teensyduino you have, if it's installed properly.

To properly install on old Arduino IDE (1.8.19 or earlier) you must run the special installer. Get it from this download page. Scroll down to "Arduino 1.8.x Software Development (Download and Run Installer)". You MUST USE THE INSTALLER for old Arduino IDE, not Boards Manager.

However, the error message looks like you have installed Teensy files using a newer version of Arduino IDE (2.0.4 or later) and the old Arduino (1.8.19 or earlier) is trying to use the files the newer newer Arduino IDE installed.

You have a few options.

1: If using old Arduino IDE, run the special installer meant for the old IDE. Quit the IDE software before using the installer, as the installer needs to be able to modify files. The installer applies patches to old Arduino IDE which should resolve this problem. Again, you only get this from the installer.
2: You could run the new IDE and use its Boards Manager uninstall the Teensy files.

3: Or you could use Windows Explorer. Special steps are needed to access the hidden AppData folder (accessing hidden folders is a very common Windows question for Google search or any Windows experts you may know...) Of course after quitting the IDE, you could try to manually delete the Arduino15/packages/teensy folder and everything inside it.

4: You could also use the newer Arduino 2.3.6 IDE.

Again, the only way to get the old Arduino IDE 1.8.19 or earlier to work is by running the special installer. Boards Manager before Arduino IDE 2.0.4 didn't work for Teensy. If you try to use Boards Manager in a newer version and then run the old IDE (which I'm pretty sure is what went wrong here) you get a bad install because the old Arduino IDE 1.8.19 tries to use stuff meant for the newer IDE 2.x.x. That special installer is the way to make Teensy work on old Arduino IDE.
 
This look like a very old version of Arduino IDE
The path matches that here on Windows for an IDE 2.?? Board Manager install - except it shows TD 1.59 and here is beta 0.60:

"C:\Users\aUser\AppData\Local\Arduino15\packages\teensy\tools\teensy-tools\0.60.4\teensy_post_compile.exe"

So, it seemed a valid IDE 2.?? install of TD 1.59 - and the p#2 questions/steps to follow to verify of reinstall?

And if the problem repeats then as noted the file is removed as unsafe by 'something'
 
Back
Top