Menu

#385 Move to Oracle JDK on Mac (JDK 1.7)

All
closed
EXE
Mac
1
2015-05-27
2014-04-07
david rees
No

Apple no longer ships JDK 1.6 with OSX and the general recommendation is to use Oracle's 1.7+ JDK. To use the Oracle JDK though TaskUnifier needs to be rebundled using the Oracle bundler as described in these StackOverflows...

http://stackoverflow.com/questions/14806709/application-is-using-java-6-from-apple-instead-of-java-7-from-oracle-on-mac-os-x
http://stackoverflow.com/questions/12102716/bundle-a-java-7-jar-for-mac

Oracle JDK 1.7 also provides numerous retina improvements.

Related

Bugs: #385

Discussion

  • Benjamin Leclerc

    Normally if you install java 7 and set it as default java version on Mac, it should be enough.

    I don't want to bundle java on the mac version, because the final file is about 130mo big compared to 25mo currently.

     
  • Benjamin Leclerc

    Apple doesn't ship 1.6, but if you try to run a java software on Mac and you don't have java installed, Mac OS automatically ask you if you want to install it.

    But I'm pretty sure that if you install 1.7 manually, it will work too.

     
    • david rees

      david rees - 2014-04-24

      Do you have to have any Mac testers that have verified it will use 1.7? I
      have JDK 1.7 installed, but TaskUnifier is still using 1.6 (see data
      below). When I first installed TaskUnifier I already had 1.7 installed, but
      it still forced me to install 1.6.

      Here is what I have installed:

      $ /usr/libexec/java_home -V
      Matching Java Virtual Machines (3):
      1.7.0_51, x86_64: "Java SE 7"
      /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home
      1.6.0_65-b14-462, x86_64: "Java SE 6"
      /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
      1.6.0_65-b14-462, i386: "Java SE 6"
      /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

      But TaskUnifier is still using 1.6 according to its system_info.txt

      Java Version: 1.6.0_65
      Java Home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
      OS Name: Mac OS X
      OS Version: 10.9.2
      OS Architecture: x86_64

      Note I don't think the 1.7 JDK needs actually needs to be included in the
      app install, the app just needs to be built with the Oracle bundler (rather
      than the Apple bundler). This stackoverflow answer walks through the
      specific steps - http://stackoverflow.com/a/15271448/255961.

      On Tue, Apr 15, 2014 at 1:14 PM, Benjamin Leclerc leclercb@users.sf.netwrote:

      Apple doesn't ship 1.6, but if you try to run a java software on Mac and
      you don't have java installed, Mac OS automatically ask you if you want to
      install it.

      But I'm pretty sure that if you install 1.7 manually, it will work too.

      Status: open
      Version: All
      Labels: apple java java7
      Created: Mon Apr 07, 2014 04:09 PM UTC by david rees
      Last Updated: Tue Apr 15, 2014 08:13 PM UTC
      Owner: nobody

      Apple no longer ships JDK 1.6 with OSX and the general recommendation is
      to use Oracle's 1.7+ JDK. To use the Oracle JDK though TaskUnifier needs to
      be rebundled using the Oracle bundler as described in these
      StackOverflows...

      http://stackoverflow.com/questions/14806709/application-is-using-java-6-from-apple-instead-of-java-7-from-oracle-on-mac-os-x
      http://stackoverflow.com/questions/12102716/bundle-a-java-7-jar-for-mac

      Oracle JDK 1.7 also provides numerous retina improvements.

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/taskunifier/bugs/385/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #385

  • Anonymous

    Anonymous - 2014-05-09

    FYI, I am on a new mac and am seeing the same situation. I only have Java 1.7 installed, but when I run TaskUnifier I get the attached dialog. And I can't run TaskUnifier without clicking install.

    Here is my setup before I install Java 6 so I can use TaskUnifier.

    $ java -version
    java version "1.7.0_55"
    Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
    ~ drees-macbookpro2
    $ /usr/libexec/java_home -V
    Matching Java Virtual Machines (1):
    1.7.0_55, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home

     
  • Benjamin Leclerc

    This will be fixed with the OSX Yosemite version (4.3.2). As it seems Yosemite requires java to be bundled.

     
  • Benjamin Leclerc

    • status: open --> closed
    • assigned_to: Benjamin Leclerc
    • Category: GUI --> EXE
     
  • david rees

    david rees - 2015-05-27

    Note this is not really fixed yet. Its still 1.6 from what I can see.

     
  • david rees

    david rees - 2015-05-27

    Upgrading it might fix sync also (https://sourceforge.net/p/taskunifier/bugs/442/).

     

Anonymous
Anonymous

Add attachments
Cancel