<html>
    <head>
      <base href="http://fiji.sc/bugzilla/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_CONFIRMED "
   title="CONFIRMED - 3D Viewer plugin fails to launch."
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=1121#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_CONFIRMED "
   title="CONFIRMED - 3D Viewer plugin fails to launch."
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=1121">bug 1121</a>
              from <span class="vcard"><a class="email" href="mailto:grocott.timothy@gmail.com" title="Timothy Grocott <grocott.timothy@gmail.com>"> <span class="fn">Timothy Grocott</span></a>
</span></b>
        <pre>*** Something weird with JAVA_HOME ***

The suggested workaround was to uninstall Java 8 and use use Java 6 instead. I
do not have Java 8 installed on my system (still running Mavericks so haven't
needed to), but apparently there is a cryptic/hidden version of Java 7...

I noticed that under "Information about your version of Java:" it says that I
am using Java 7 (1.7.0_55), yet when I run "java -version" from the terminal it
says I am running Java 6 (1.6.0_55).

The folder "/Library/Java/JavaVirtualMachines" is empty.

The Folder "/System/Library/Java/JavaVirtualMachines" contains a copy of
"jdk1.6.0.jdk" only, no other versions are present in this folder.

>From my bug report, under "Information about your version of Java:" Fiji
reports that "JAVA_HOME is set to: /Library/Internet
Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/".

According to OS X, JAVA_HOME is set to
"/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"

Why would Fiji be pointing to a different version of Java (Java 7) hidden
inside an "internet plug-in", when the according to OS X I am running Java 6?
Is this normal? If not, how can I fix it? I just removed and re-installed Fiji
in case something got corrupted, but it still reports Java 7, and JAVA_HOME
still points to that same "internet plug-in".

>From examining other user's bug reports, their Fiji reports that JAVA_HOME is
set to a sub-folder of "/Library/Java/JavaVirtualMachines".

There seems to be some dis-connect between Fiji and OS X regarding what version
of Java I am using.

I tried forcing Fiji to use Java 6 via "--java-home" but Fiji failed to launch
citing a missing library.

I guess my next move is to try reinstalling Java 6 (and then Fiji, in that
order?) to see if that fixes Fiji's JAVA_HOME pointer. I don't know if it is
safe to remove the offending "internet plug-in".

PS - I am using Netbeans to develop plugins. Could installing Netbeans have
interfered with JAVE_HOME?

PPS - I don't know anything about internet plug-ins, but I'm using Google
Chrome as a browser.

PPPS - I am trying to publish a Fiji plugin that requires a working version of
3D Viewer and am a little concerned about this problem arising during peer
review.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>