Skip to content

Mac OS X 10.10 Problem #2384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dyvitis opened this issue Oct 23, 2014 · 27 comments
Closed

Mac OS X 10.10 Problem #2384

dyvitis opened this issue Oct 23, 2014 · 27 comments
Assignees
Labels
OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE

Comments

@dyvitis
Copy link

dyvitis commented Oct 23, 2014

I recently upgraded to OS X Yosemite and Java 1.8. Upon attempting to start Arduino app, I get an error as follows:
Arduino quit unexpectedly.

Please advise.
Many thanks

@Wdg326
Copy link

Wdg326 commented Oct 27, 2014

I have the same issue. Same error between Arduino versions 1.0.5 and 1.0.6
java 8 error for arduino 1 0 6

@saitheexplorer
Copy link

+1

@gregcotten
Copy link

Hit "More Info" and download and install the Java SE 6 runtime.

@dyvitis
Copy link
Author

dyvitis commented Oct 29, 2014

I would if I was given the option. See attached screen grab.

On 29/10/2014, at 6:15 am, Greg Cotten [email protected] wrote:

Hit "More Info" and download the Java SE 6 runtime.


Reply to this email directly or view it on GitHub #2384 (comment).

@cmaglie cmaglie changed the title Max OS X 10.10 Problem Mac OS X 10.10 Problem Nov 5, 2014
@Andersos
Copy link

In the screen grab there is a button called "More info..." like @gregcotten suggests.

@Wdg326
Copy link

Wdg326 commented Nov 25, 2014

is there not a better method than to run Java SE 6? ....

@tcurdt
Copy link

tcurdt commented Jan 6, 2015

Installing a legacy runtime cannot be the answer. The IDE should run with java 8, too.

@michaeltandy
Copy link

I've been able to get it working with the 1.5.8 Beta release named "Mac OS X: ZIP file for Java 7" from the download page - it doesn't run if you double-click Arduino.app but I've been able to launch the IDE, compile and program Uno boards.

After copying Arduino.app into my Applications folder, I just did this in the terminal:

cd /Applications/Arduino.app/Contents/Java
java -cp antlr.jar:apple.jar:commons-codec-1.7.jar:commons-exec-1.1.jar:commons-httpclient-3.1.jar:commons-logging-1.0.4.jar:core.jar:ecj.jar:jmdns-3.4.1.jar:jna.jar:jsch-0.1.50.jar:jssc-2.8.0.jar:pde.jar processing.app.Base

(If you're wondering how I figured that long command out, I basically looked at what this launch script in the Linux arduino build does and figured out a similar-looking command)

Here are my java version details:

$ java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b84)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b25, mixed mode)

I was under the impression Java tries pretty hard to keep new JVM releases compatible with jars targeting older Java versions; I'd be interested to hear, if anyone knows, why the launcher isn't happy with Java 8 given that Processing seems fine with it.

@ffissore ffissore added the OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE label Jan 27, 2015
@ffissore
Copy link
Contributor

ffissore commented Feb 1, 2015

Can you try version "macosx-new" from #2590 (comment) ?

@ffissore ffissore self-assigned this Feb 1, 2015
@tcurdt
Copy link

tcurdt commented Feb 2, 2015

macosx-new starts fine for me - but now I already have the legacy java installed already. Not sure how to figure out which runtime it uses.

@ffissore
Copy link
Contributor

ffissore commented Feb 2, 2015

Don't know either. The "-new" version should not work with java <= 6. But a way to know which version is using would be nice to have. Maybe a plain lsof | grep -i java ?

@tcurdt
Copy link

tcurdt commented Feb 2, 2015

Good idea. From lsof it looks like it picked the old runtime. Not so eager to de-install it just to try.

@ffissore
Copy link
Contributor

ffissore commented Feb 2, 2015

I'm not sure lsof works as expected, though

@michaeltandy
Copy link

@ffissore I downloaded arduino-PR-2590-BUILD-142-macosx.zip (the file had an sha1 of c942411f294156e3737c8495b44863ed9db6857a ) from #2590 (comment)

Unfortunately, when I try to open it, I still get the message "To open “Arduino.app” you need to install the legacy Java SE 6 runtime."

Next, I installed arduino-PR-2590-BUILD-142-macosx-new.zip (the file had an sha1 of f810ccee173069c691be93c8c2198dfabe4344e8 ) from #2590 (comment) - this time I received the message "“Arduino.app” can’t be opened because it is from an unidentified developer." - when I looked in the package, it didn't contain a "_CodeSignature" folder.

My computer's details:

Michaels-Mini:Downloads mtandy$ java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b84)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b25, mixed mode)

Michaels-Mini:Downloads mtandy$ uname -a
Darwin Michaels-Mini.lan 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64

@tcurdt
Copy link

tcurdt commented Feb 2, 2015

That still sounds like progress :)

In preferences "Security & Privacy > General > Allow apps downloaded from" (at least for the test) switch it to "Anywhere". If that works all is left is signing the release properly.

@michaeltandy
Copy link

As the -new file wasn't in the comment by @ArduinoBot I figured it wasn't from the build server - but looking at the ant file I see it was from the build server, just not in the comment.

Unable to load Java Runtime Environment

Pretty unhelpful error message, eh?

I tried these at the command line, hoping to get some debug info on stdout, but I didn't get anything:

$ open Arduino.app
$ Arduino.app/Contents/MacOS/Arduino

@ffissore
Copy link
Contributor

ffissore commented Feb 3, 2015

It's not yet in the comment since PR builder has to work with all PRs. It will eventually be.

The error message is expected and it's the reason why we'll keep on pushing the normal version, which requires java6, the package of which is managed by Apple.
Please remember that the -new version is only for those who have troubles running the "normale" one.

Since Java7, Apple doesn't provide a Java package any more. You need to download a recent jre on your own (from http://java.com/it/download/). Then the IDE will run fine

@ffissore
Copy link
Contributor

ffissore commented Feb 3, 2015

@michaeltandy only now I see you already have java. Can you paste the output of
/usr/libexec/java_home -V ?

@ffissore
Copy link
Contributor

ffissore commented Feb 3, 2015

@tcurdt @michaeltandy Automated builds (everything but the released versions you find on the download page) are not signed

@tcurdt
Copy link

tcurdt commented Feb 3, 2015

The error message is expected and it's the reason why we'll keep on pushing the normal version, which requires java6, the package of which is managed by Apple.

Since Mavericks it's a hassle to install the old version and the installation of a newer runtime is recommended. That's what should be communicated to the users giving them instructions on how to install the runtime.

I also had java8 installed when I came here.

Since Java7, Apple doesn't provide a Java package any more. You need to download a recent jre on your own (from http://java.com/it/download/). Then the IDE will run fine

The problem is that with the "normal" version it will not run fine. People come here because they do have java but are forced to search, find and install a legacy package to install java6 to get the IDE running - despite the already installed newer runtime.

@ffissore
Copy link
Contributor

ffissore commented Feb 3, 2015

Yes, helping users with issues is the whole point of this "-new" version.

When people run the IDE, and mac says there's a requirement, and everything is done with a no-brainer sequence of "yes, ok, continue", that's is far easier to explain.
People that say "no, I already have installed java, I won't install this old 6 thing" they already are advanced users and we'll provide a dedicated guide.

This will only happen once we've released

@tcurdt
Copy link

tcurdt commented Feb 3, 2015

everything is done with a no-brainer sequence of "yes, ok, continue", that's is far easier to explain

@ffissore that's how it was before - unfortunately that's no longer true on Mavericks

@ffissore
Copy link
Contributor

ffissore commented Feb 3, 2015

And there will be a dedicated guide :) Trust me, at the end, it will look easy (hopefully it will be easy ;)). Now we are polishing the code. Documentation will follow

@michaeltandy
Copy link

@ffissore Command output:

$ /usr/libexec/java_home -V
Matching Java Virtual Machines (3):
    1.8.0, x86_64:  "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
    1.7.0_51, x86_64:   "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
    1.7.0_17, x86_64:   "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home

I decided to dump 1.7 and followed Oracle's instructions - after doing this the result was:

$ /usr/libexec/java_home -V
Matching Java Virtual Machines (1):
    1.8.0, x86_64:  "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home

However, I still get the error "Unable to load Java Runtime Environment."

@ffissore
Copy link
Contributor

ffissore commented Feb 5, 2015

What does java -version prints? Any chance we may have a video call, so you can show me your desktop and I can ask you to do some tests? Write me at [email protected] is you have a free quarter of an hour

@ffissore
Copy link
Contributor

ffissore commented Feb 5, 2015

@ffissore
Copy link
Contributor

Fixed with IDE 1.6.0 release. If you still have problems, please open a new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE
Projects
None yet
Development

No branches or pull requests

8 participants