Forum Rule: Always post complete source code & details to reproduce any issue!
Teensyduino 1.3.5 Installation Problem on MacOS 10.12.3
After a few month of absence from Teensy development, I decided to update the development tools.
This installation takes place on MacOS 10.12.3 "Sierra"
Arduino 1.8.1 installs nicely and is running. I started it once after installation as suggested in the instructions.
Then I installed Teensyduino 1.35 on top of it. I point the installer to the Arduino.app, it recognizes Arduino 1.8.1 and installation starts.
When I start Arduino now, I just get an "Unable to load Java Runtime Environment." message.
I deleted Arduino.app and started over a few times now, no change. Am I missing something? Anybody working with these versions of Arduino/Teensyduino on MacOS Sierra ?
I had that once, but a few years (and Teensyduino releases) ago. Using the disk utility and fixing the permissions after the Arduino but before the Teensyduino install did the trick.
Recently, I installed Arduino 1.8.1 from scratch and Teensyduino 1.36 beta on top of it under OSX 10.12.4 beta without problems.
Anyone else using 10.12.3 on their Mac?
I'll update my test mac soon and give this a try. At the moment, my workbench is covered in USB host dev stuff and lots of USB things I'm trying with it.....
I solved the problem. My "mistake" was to unzip the Arduino IDE with 'The Unarchiver'.
When using unzip everything is fine! There is a difference in the warning dialog when opening Arduino for the first time.
Using The Unarchiver macOS says "This file was created by The Unarchiver on an unknown date" (translated from german)
With unzip it says "Google Chrome.app downloaded this file <time of downloading> from www.arduino.org".
From a security point of view its reasonable to say this file was created by The Unarchiver, because you can't be sure that you purely get on your machine what you downloaded. You also have to trust your unzip program, as it could add or manipulate something while unpacking. Strange to me that Arduino.app runs after unpacking but not after patching with Teensyduino. But maybe you understand why that's happening?
There's a signature on the Arduino app bundle which becomes invalid when lots of extra files are added and a few of the existing files are changed.
Originally Posted by olieske
That's why you need to run it at least once, to pass the question about downloaded from the internet. Current versions of MacOS don't mind if the signature isn't valid, as long as you've already approved, and the files are still in the same location.
At some point in the (hopefully distant) future, an update to MacOS is likely to reject the modified software even after you've approved. When/if that happens, I'll need to adapt the installer. Maybe I'll disable the choices of which libraries to install on Mac, so the result is always a fixed set of data I can sign. Or maybe the Mac version will have to just become a completely separate copy of Arduino.
Or perhaps in a very distant future, I'll work more closely with the Arduino devs to have some way for Teensyduino's special patches to install by their boards manager or some other method.
For now, I'm hoping this approach will remain good enough. Redoing how the mac version installs would be a huge distraction from so many much interesting projects, like the USB ECHI host I'm doing now, and a long list of awesome audio features people have requested, and native ethernet, and much-needed website improvements, and....
I updated to 10.12.3 recently and was worried about this but Arduino with Teensyduino worked the same way as it always have when I downloaded and installed them. Though my next computer I purchase is going to run linux, macOS is starting to be more fluff than substance and not mention they really haven't updated their computer hardware in long time anyway.
Originally Posted by PaulStoffregen
I'm using 10.12.3 Sierra on my Mac, and have just tried to update the Arduino IDE (1.8.1) and Teensyduino (1.35).
The Arduino IDE worked fine when tested, until I installed Teensyduino and then the "Unable to Load Java Runtime Environment" message started to appear. I have the latest versions of both, and the latest JRE 8u121 too...
Is Teensyduino dependent on a previous version of the JRE?
They seem to be more interested releasing OSX updates every 6 months for "features" to take people's minds off their low tech. This is why some people install "hackintosh". PC hardware is more faster than mac at a fraction of the cost.
Originally Posted by duff