How to have to two different versions of Java on the same computer in OS X





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







3















I got an iMac with OS X 10.11.2 El Capitan. I have installed the latest version of Java SE. However, I have a problem with running some Max for Live effects because Max for Live requires Java SE6 in order to be able to run.



On an Ableton forum, one of the users mentioned that he used two different versions of Java, the latest and SE6, he then switches to the latter when needing to use Max for Live.



I have downloaded from the Apple site, a Java for OS X 2015-001 which would install Java SE6, however I'm concerned that if I install it in the normal fashion it will override Java SE8.



I want to know how I can install Java SE6, but still keeping Java SE8 and how I can switch between versions when necessary.



Thanks in advance










share|improve this question





























    3















    I got an iMac with OS X 10.11.2 El Capitan. I have installed the latest version of Java SE. However, I have a problem with running some Max for Live effects because Max for Live requires Java SE6 in order to be able to run.



    On an Ableton forum, one of the users mentioned that he used two different versions of Java, the latest and SE6, he then switches to the latter when needing to use Max for Live.



    I have downloaded from the Apple site, a Java for OS X 2015-001 which would install Java SE6, however I'm concerned that if I install it in the normal fashion it will override Java SE8.



    I want to know how I can install Java SE6, but still keeping Java SE8 and how I can switch between versions when necessary.



    Thanks in advance










    share|improve this question

























      3












      3








      3








      I got an iMac with OS X 10.11.2 El Capitan. I have installed the latest version of Java SE. However, I have a problem with running some Max for Live effects because Max for Live requires Java SE6 in order to be able to run.



      On an Ableton forum, one of the users mentioned that he used two different versions of Java, the latest and SE6, he then switches to the latter when needing to use Max for Live.



      I have downloaded from the Apple site, a Java for OS X 2015-001 which would install Java SE6, however I'm concerned that if I install it in the normal fashion it will override Java SE8.



      I want to know how I can install Java SE6, but still keeping Java SE8 and how I can switch between versions when necessary.



      Thanks in advance










      share|improve this question














      I got an iMac with OS X 10.11.2 El Capitan. I have installed the latest version of Java SE. However, I have a problem with running some Max for Live effects because Max for Live requires Java SE6 in order to be able to run.



      On an Ableton forum, one of the users mentioned that he used two different versions of Java, the latest and SE6, he then switches to the latter when needing to use Max for Live.



      I have downloaded from the Apple site, a Java for OS X 2015-001 which would install Java SE6, however I'm concerned that if I install it in the normal fashion it will override Java SE8.



      I want to know how I can install Java SE6, but still keeping Java SE8 and how I can switch between versions when necessary.



      Thanks in advance







      macos mac java






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 1 '16 at 18:07









      Vasco PereiraVasco Pereira

      162




      162






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Try jenv util to use different versions for different apps: link to how-to



          In general, you should download all the versions you need, then you've gotta do the following:





          • install jenv (this step require any brew instance on your mac, if you don't have one, look here):



            brew install jenv




          • add these lines to your .bash_profile, script will init jenv util:



            # Init jenv
            if which jenv > /dev/null; then eval "$(jenv init -)"; fi



          • register all jdk in ***jenv*:



          jenv add /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/
          jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/




          • run this to list all registered jdk:


          jenv versions



          One with the asterisk is the current version.




          • this command'll set global version:


          jenv global oracle64-1.7.0.79




          • and by this one you can set local versions in any project folders you need:


          cd <my project>
          jenv local oracle64-1.8.0.66






          share|improve this answer


























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1020574%2fhow-to-have-to-two-different-versions-of-java-on-the-same-computer-in-os-x%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Try jenv util to use different versions for different apps: link to how-to



            In general, you should download all the versions you need, then you've gotta do the following:





            • install jenv (this step require any brew instance on your mac, if you don't have one, look here):



              brew install jenv




            • add these lines to your .bash_profile, script will init jenv util:



              # Init jenv
              if which jenv > /dev/null; then eval "$(jenv init -)"; fi



            • register all jdk in ***jenv*:



            jenv add /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/
            jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/




            • run this to list all registered jdk:


            jenv versions



            One with the asterisk is the current version.




            • this command'll set global version:


            jenv global oracle64-1.7.0.79




            • and by this one you can set local versions in any project folders you need:


            cd <my project>
            jenv local oracle64-1.8.0.66






            share|improve this answer






























              1














              Try jenv util to use different versions for different apps: link to how-to



              In general, you should download all the versions you need, then you've gotta do the following:





              • install jenv (this step require any brew instance on your mac, if you don't have one, look here):



                brew install jenv




              • add these lines to your .bash_profile, script will init jenv util:



                # Init jenv
                if which jenv > /dev/null; then eval "$(jenv init -)"; fi



              • register all jdk in ***jenv*:



              jenv add /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/
              jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/




              • run this to list all registered jdk:


              jenv versions



              One with the asterisk is the current version.




              • this command'll set global version:


              jenv global oracle64-1.7.0.79




              • and by this one you can set local versions in any project folders you need:


              cd <my project>
              jenv local oracle64-1.8.0.66






              share|improve this answer




























                1












                1








                1







                Try jenv util to use different versions for different apps: link to how-to



                In general, you should download all the versions you need, then you've gotta do the following:





                • install jenv (this step require any brew instance on your mac, if you don't have one, look here):



                  brew install jenv




                • add these lines to your .bash_profile, script will init jenv util:



                  # Init jenv
                  if which jenv > /dev/null; then eval "$(jenv init -)"; fi



                • register all jdk in ***jenv*:



                jenv add /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/
                jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/




                • run this to list all registered jdk:


                jenv versions



                One with the asterisk is the current version.




                • this command'll set global version:


                jenv global oracle64-1.7.0.79




                • and by this one you can set local versions in any project folders you need:


                cd <my project>
                jenv local oracle64-1.8.0.66






                share|improve this answer















                Try jenv util to use different versions for different apps: link to how-to



                In general, you should download all the versions you need, then you've gotta do the following:





                • install jenv (this step require any brew instance on your mac, if you don't have one, look here):



                  brew install jenv




                • add these lines to your .bash_profile, script will init jenv util:



                  # Init jenv
                  if which jenv > /dev/null; then eval "$(jenv init -)"; fi



                • register all jdk in ***jenv*:



                jenv add /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/
                jenv add /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/




                • run this to list all registered jdk:


                jenv versions



                One with the asterisk is the current version.




                • this command'll set global version:


                jenv global oracle64-1.7.0.79




                • and by this one you can set local versions in any project folders you need:


                cd <my project>
                jenv local oracle64-1.8.0.66







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 3 '16 at 20:37

























                answered Sep 3 '16 at 20:31









                solarsolar

                1114




                1114






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1020574%2fhow-to-have-to-two-different-versions-of-java-on-the-same-computer-in-os-x%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Aardman Animations

                    Are they similar matrix

                    “minimization” problem in Euclidean space related to orthonormal basis