ImageJ does not run on Mac OS X 10.10 with Java 8

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

ImageJ does not run on Mac OS X 10.10 with Java 8

jnkath
Hi there,
currently, ImageJ (or Fiji) does not run on Mac OS X Yosemite (10.10.x) with Java 8 installed. The only workarounds to this problem seem to be:

- a downgrade to Java 6 (which is outdated and poses a security risk)
- to run ImageJ on a virtual machine

There must be a lot of people who need to routinely use ImageJ on an up-to-date Mac OS X System, so my questions are:

- Is there another workaround available to run ImageJ on Mac OS 10.10.x with Java 8?
- When will ImageJ natively support Java 8?

Thanks a lot for your help! Currently, I am forced to use ImageJ only on an outdated Windows workstation which is quite unpleasant...

Jakob
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ does not run on Mac OS X 10.10 with Java 8

Michael P Ellis
Dear Jakob,

- Open up the ImageJ application folder
- Control click on the ImageJ application and select “Show Package Contents”
- Copy ij.jar from Contents/Resources/Java into the ImageJ directory

From now on double click on the ij.jar file to launch ImageJ. This will launch ImageJ with your current version of JVM that you have installed

You may find that Yosemite prevents you from launching ImageJ with a warning “ImageJ can’t be launched because it is from an unidentified developer”

If you get this either adjust your security settings in your system preferences or control clicl on ij.jar and select Open whereupon you should get the option to override the default security settings and launch ImageJ.

Regards — Michael Ellis

On 16 Feb 2015, at 09:43, jnkath <[hidden email]> wrote:

> Hi there,
> currently, ImageJ (or Fiji) does not run on Mac OS X Yosemite (10.10.x) with
> Java 8 installed. The only workarounds to this problem seem to be:
>
> - a downgrade to Java 6 (which is outdated and poses a security risk)
> - to run ImageJ on a virtual machine
>
> There must be a lot of people who need to routinely use ImageJ on an
> up-to-date Mac OS X System, so my questions are:
>
> - Is there another workaround available to run ImageJ on Mac OS 10.10.x with
> Java 8?
> - When will ImageJ natively support Java 8?
>
> Thanks a lot for your help! Currently, I am forced to use ImageJ only on an
> outdated Windows workstation which is quite unpleasant...
>
> Jakob
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/ImageJ-does-not-run-on-Mac-OS-X-10-10-with-Java-8-tp5011607.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ does not run on Mac OS X 10.10 with Java 8

Mark Hiner
Hi Jakob,

>currently, ImageJ (or Fiji) does not run on Mac OS X Yosemite (10.10.x)
with Java 8 installed

Can you provide any more details about your installation (e.g. is this a
fresh download, or a lifeline Fiji version..) and what happens when you try
to run Fiji? I'm able to run Fiji on a Yosemite mac using Java 8 so it
would be nice if we can figure out what's different with your setup.

You can try launching in debug mode from the command line[1]. That way
you'll see any error messages, even if the UI doesn't actually pop up.

Thanks,
Mark

[1] http://imagej.net/Debugging#Launching_ImageJ_in_debug_mode

On Mon, Feb 16, 2015 at 4:14 AM, Michael Ellis <[hidden email]>
wrote:

> Dear Jakob,
>
> - Open up the ImageJ application folder
> - Control click on the ImageJ application and select “Show Package
> Contents”
> - Copy ij.jar from Contents/Resources/Java into the ImageJ directory
>
> From now on double click on the ij.jar file to launch ImageJ. This will
> launch ImageJ with your current version of JVM that you have installed
>
> You may find that Yosemite prevents you from launching ImageJ with a
> warning “ImageJ can’t be launched because it is from an unidentified
> developer”
>
> If you get this either adjust your security settings in your system
> preferences or control clicl on ij.jar and select Open whereupon you should
> get the option to override the default security settings and launch ImageJ.
>
> Regards — Michael Ellis
>
> On 16 Feb 2015, at 09:43, jnkath <[hidden email]> wrote:
>
> > Hi there,
> > currently, ImageJ (or Fiji) does not run on Mac OS X Yosemite (10.10.x)
> with
> > Java 8 installed. The only workarounds to this problem seem to be:
> >
> > - a downgrade to Java 6 (which is outdated and poses a security risk)
> > - to run ImageJ on a virtual machine
> >
> > There must be a lot of people who need to routinely use ImageJ on an
> > up-to-date Mac OS X System, so my questions are:
> >
> > - Is there another workaround available to run ImageJ on Mac OS 10.10.x
> with
> > Java 8?
> > - When will ImageJ natively support Java 8?
> >
> > Thanks a lot for your help! Currently, I am forced to use ImageJ only on
> an
> > outdated Windows workstation which is quite unpleasant...
> >
> > Jakob
> >
> >
> >
> > --
> > View this message in context:
> http://imagej.1557.x6.nabble.com/ImageJ-does-not-run-on-Mac-OS-X-10-10-with-Java-8-tp5011607.html
> > Sent from the ImageJ mailing list archive at Nabble.com.
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ does not run on Mac OS X 10.10 with Java 8

Mark Hiner
Hi again Jakob,

 After a brief chat with Curtis Rueden[1], it looks like the problem is
that Java 6 is required to be installed even though Fiji can be launched in
a Java 8 JVM. It works on developer machines like mine because I have Java
6, 7 and 8 installed for testing.

 If you have a Yosemite mac WITHOUT Java 6 installed, could you try
replacing the jars/imagej-launcher-xxx.jar in your Fiji with this version:
http://jenkins.imagej.net/job/ImageJ-launcher/label=MacOSX/1205/artifact/target/imagej-launcher-3.3.0.jar

 This release of the ImageJ-launcher has fixes that are supposed to remove
the need for Java 6, but is not a part of Fiji yet because it's not well
tested. If you can confirm that it fixes the problem for you that would be
fantastic.

Best,
Mark

-
[1]
http://code.imagej.net/chatlogs/imagejdev?times=prefix&start-date=2015-02-16&start-time=0400&end-date=2015-02-17&end-time=0400

On Mon, Feb 16, 2015 at 8:15 AM, Mark Hiner <[hidden email]> wrote:

> Hi Jakob,
>
> >currently, ImageJ (or Fiji) does not run on Mac OS X Yosemite (10.10.x)
> with Java 8 installed
>
> Can you provide any more details about your installation (e.g. is this a
> fresh download, or a lifeline Fiji version..) and what happens when you try
> to run Fiji? I'm able to run Fiji on a Yosemite mac using Java 8 so it
> would be nice if we can figure out what's different with your setup.
>
> You can try launching in debug mode from the command line[1]. That way
> you'll see any error messages, even if the UI doesn't actually pop up.
>
> Thanks,
> Mark
>
> [1] http://imagej.net/Debugging#Launching_ImageJ_in_debug_mode
>
> On Mon, Feb 16, 2015 at 4:14 AM, Michael Ellis <[hidden email]>
> wrote:
>
>> Dear Jakob,
>>
>> - Open up the ImageJ application folder
>> - Control click on the ImageJ application and select “Show Package
>> Contents”
>> - Copy ij.jar from Contents/Resources/Java into the ImageJ directory
>>
>> From now on double click on the ij.jar file to launch ImageJ. This will
>> launch ImageJ with your current version of JVM that you have installed
>>
>> You may find that Yosemite prevents you from launching ImageJ with a
>> warning “ImageJ can’t be launched because it is from an unidentified
>> developer”
>>
>> If you get this either adjust your security settings in your system
>> preferences or control clicl on ij.jar and select Open whereupon you should
>> get the option to override the default security settings and launch ImageJ.
>>
>> Regards — Michael Ellis
>>
>> On 16 Feb 2015, at 09:43, jnkath <[hidden email]> wrote:
>>
>> > Hi there,
>> > currently, ImageJ (or Fiji) does not run on Mac OS X Yosemite (10.10.x)
>> with
>> > Java 8 installed. The only workarounds to this problem seem to be:
>> >
>> > - a downgrade to Java 6 (which is outdated and poses a security risk)
>> > - to run ImageJ on a virtual machine
>> >
>> > There must be a lot of people who need to routinely use ImageJ on an
>> > up-to-date Mac OS X System, so my questions are:
>> >
>> > - Is there another workaround available to run ImageJ on Mac OS 10.10.x
>> with
>> > Java 8?
>> > - When will ImageJ natively support Java 8?
>> >
>> > Thanks a lot for your help! Currently, I am forced to use ImageJ only
>> on an
>> > outdated Windows workstation which is quite unpleasant...
>> >
>> > Jakob
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://imagej.1557.x6.nabble.com/ImageJ-does-not-run-on-Mac-OS-X-10-10-with-Java-8-tp5011607.html
>> > Sent from the ImageJ mailing list archive at Nabble.com.
>> >
>> > --
>> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ does not run on Mac OS X 10.10 with Java 8

jnkath
Hi Mark,
thank you very much for your response to my question. Michael provided a workaround that fixed the issue for me (running "ij.jar" directly instead of running "ImageJ64.app").

Still, opening the "ImageJ64.app" file results in this error:

'To open "ImageJ64.app" you need to install the legacy Java SE 6 runtime. Click "More Info..." to visit the legacy Java SE 6 download website.'

I have Java Version 8 Update 31 (build 1.8.0_31-b15) and ImageJ 1.48 from http://rsb.info.nih.gov/ij/download/osx/ImageJ148.zip installed. As far as I can tell, I do not have Java Version 6 installed.

When using Fiji continuous release from
http://jenkins.imagej.net/job/Stable-Fiji-MacOSX/lastSuccessfulBuild/artifact/fiji-macosx.dmg, the same error pops up when running "Fiji.app".

Like you suggested, I replaced "jars/imagej-launcher-3.1.6" with the file you indicated ("imagej-launcher-3.3.0"), but this did NOT fix the issue: when trying to run "Fiji.app", the same error popped up:

'To open "Fiji" you need to install the legacy Java SE 6 runtime. Click "More Info..." to visit the legacy Java SE 6 download website.'

Best regards,
Jakob


Mark Hiner wrote
 If you have a Yosemite mac WITHOUT Java 6 installed, could you try
replacing the jars/imagej-launcher-xxx.jar in your Fiji with this version:
http://jenkins.imagej.net/job/ImageJ-launcher/label=MacOSX/1205/artifact/target/imagej-launcher-3.3.0.jar

 This release of the ImageJ-launcher has fixes that are supposed to remove
the need for Java 6, but is not a part of Fiji yet because it's not well
tested. If you can confirm that it fixes the problem for you that would be
fantastic.