Downgrade to Java 8 from Java 10 on Mac so that Netbeans can work












0















I have java version 8, but when I type java -version in terminal I am getting java 10 version. I want my java version 8 back.
In System Preferences, it is Showing Java 8 but when I see in terminal it is showing that I am using Java 10.0.2 version.



Netbeans is not working, i.e On clicking New Project no operation is performed.










share|improve this question























  • Fix your path and any other Java related environment variables.

    – DavidPostill
    Dec 22 '18 at 20:07











  • @DavidPostill Could you please suggest me the steps ?

    – Rohith Sai
    Dec 23 '18 at 11:25











  • Look at the install instructions for your version of Java

    – DavidPostill
    Dec 23 '18 at 11:28
















0















I have java version 8, but when I type java -version in terminal I am getting java 10 version. I want my java version 8 back.
In System Preferences, it is Showing Java 8 but when I see in terminal it is showing that I am using Java 10.0.2 version.



Netbeans is not working, i.e On clicking New Project no operation is performed.










share|improve this question























  • Fix your path and any other Java related environment variables.

    – DavidPostill
    Dec 22 '18 at 20:07











  • @DavidPostill Could you please suggest me the steps ?

    – Rohith Sai
    Dec 23 '18 at 11:25











  • Look at the install instructions for your version of Java

    – DavidPostill
    Dec 23 '18 at 11:28














0












0








0








I have java version 8, but when I type java -version in terminal I am getting java 10 version. I want my java version 8 back.
In System Preferences, it is Showing Java 8 but when I see in terminal it is showing that I am using Java 10.0.2 version.



Netbeans is not working, i.e On clicking New Project no operation is performed.










share|improve this question














I have java version 8, but when I type java -version in terminal I am getting java 10 version. I want my java version 8 back.
In System Preferences, it is Showing Java 8 but when I see in terminal it is showing that I am using Java 10.0.2 version.



Netbeans is not working, i.e On clicking New Project no operation is performed.







macos java netbeans






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 22 '18 at 19:45









Rohith SaiRohith Sai

1




1













  • Fix your path and any other Java related environment variables.

    – DavidPostill
    Dec 22 '18 at 20:07











  • @DavidPostill Could you please suggest me the steps ?

    – Rohith Sai
    Dec 23 '18 at 11:25











  • Look at the install instructions for your version of Java

    – DavidPostill
    Dec 23 '18 at 11:28



















  • Fix your path and any other Java related environment variables.

    – DavidPostill
    Dec 22 '18 at 20:07











  • @DavidPostill Could you please suggest me the steps ?

    – Rohith Sai
    Dec 23 '18 at 11:25











  • Look at the install instructions for your version of Java

    – DavidPostill
    Dec 23 '18 at 11:28

















Fix your path and any other Java related environment variables.

– DavidPostill
Dec 22 '18 at 20:07





Fix your path and any other Java related environment variables.

– DavidPostill
Dec 22 '18 at 20:07













@DavidPostill Could you please suggest me the steps ?

– Rohith Sai
Dec 23 '18 at 11:25





@DavidPostill Could you please suggest me the steps ?

– Rohith Sai
Dec 23 '18 at 11:25













Look at the install instructions for your version of Java

– DavidPostill
Dec 23 '18 at 11:28





Look at the install instructions for your version of Java

– DavidPostill
Dec 23 '18 at 11:28










1 Answer
1






active

oldest

votes


















0














I assume that you are using NetBeans 8.2, since that release will not work with any version of Java > 8.



If so, then you need to tell NetBeans to use Java 8 (and not Java 10) on startup. To do that:




  • Close NetBeans 8.2 if it is running.

  • Within your NetBeans 8.2 installation directory locate a directory named etc.

  • Within that directory locate a configuration file named netbeans.conf.

  • Open that file in any text editor. It is a simple text file containing property-value pairs.

  • Locate the line containing the property netbeans_jdkhome. If that line is prefixed with a # symbol (to denote a comment) then remove that #.

  • Replace whatever the value is for that property with the path to your JDK 8 installation. For example, on my Windows 10 machine that line looks like this for my NetBeans 8.2 installation: netbeans_jdkhome="C:Javajdk1.8.0_181"

  • Save your changes to netbeans.conf and start NetBeans. You should now be able to create a project in NetBeans 8.2 using JDK 8.


One final point: it doesn't matter what value is returned for java -version in a Terminal window. All that matters for NetBeans 8.2 to work is that it is configured to use Java 8.






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%2f1386991%2fdowngrade-to-java-8-from-java-10-on-mac-so-that-netbeans-can-work%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









    0














    I assume that you are using NetBeans 8.2, since that release will not work with any version of Java > 8.



    If so, then you need to tell NetBeans to use Java 8 (and not Java 10) on startup. To do that:




    • Close NetBeans 8.2 if it is running.

    • Within your NetBeans 8.2 installation directory locate a directory named etc.

    • Within that directory locate a configuration file named netbeans.conf.

    • Open that file in any text editor. It is a simple text file containing property-value pairs.

    • Locate the line containing the property netbeans_jdkhome. If that line is prefixed with a # symbol (to denote a comment) then remove that #.

    • Replace whatever the value is for that property with the path to your JDK 8 installation. For example, on my Windows 10 machine that line looks like this for my NetBeans 8.2 installation: netbeans_jdkhome="C:Javajdk1.8.0_181"

    • Save your changes to netbeans.conf and start NetBeans. You should now be able to create a project in NetBeans 8.2 using JDK 8.


    One final point: it doesn't matter what value is returned for java -version in a Terminal window. All that matters for NetBeans 8.2 to work is that it is configured to use Java 8.






    share|improve this answer




























      0














      I assume that you are using NetBeans 8.2, since that release will not work with any version of Java > 8.



      If so, then you need to tell NetBeans to use Java 8 (and not Java 10) on startup. To do that:




      • Close NetBeans 8.2 if it is running.

      • Within your NetBeans 8.2 installation directory locate a directory named etc.

      • Within that directory locate a configuration file named netbeans.conf.

      • Open that file in any text editor. It is a simple text file containing property-value pairs.

      • Locate the line containing the property netbeans_jdkhome. If that line is prefixed with a # symbol (to denote a comment) then remove that #.

      • Replace whatever the value is for that property with the path to your JDK 8 installation. For example, on my Windows 10 machine that line looks like this for my NetBeans 8.2 installation: netbeans_jdkhome="C:Javajdk1.8.0_181"

      • Save your changes to netbeans.conf and start NetBeans. You should now be able to create a project in NetBeans 8.2 using JDK 8.


      One final point: it doesn't matter what value is returned for java -version in a Terminal window. All that matters for NetBeans 8.2 to work is that it is configured to use Java 8.






      share|improve this answer


























        0












        0








        0







        I assume that you are using NetBeans 8.2, since that release will not work with any version of Java > 8.



        If so, then you need to tell NetBeans to use Java 8 (and not Java 10) on startup. To do that:




        • Close NetBeans 8.2 if it is running.

        • Within your NetBeans 8.2 installation directory locate a directory named etc.

        • Within that directory locate a configuration file named netbeans.conf.

        • Open that file in any text editor. It is a simple text file containing property-value pairs.

        • Locate the line containing the property netbeans_jdkhome. If that line is prefixed with a # symbol (to denote a comment) then remove that #.

        • Replace whatever the value is for that property with the path to your JDK 8 installation. For example, on my Windows 10 machine that line looks like this for my NetBeans 8.2 installation: netbeans_jdkhome="C:Javajdk1.8.0_181"

        • Save your changes to netbeans.conf and start NetBeans. You should now be able to create a project in NetBeans 8.2 using JDK 8.


        One final point: it doesn't matter what value is returned for java -version in a Terminal window. All that matters for NetBeans 8.2 to work is that it is configured to use Java 8.






        share|improve this answer













        I assume that you are using NetBeans 8.2, since that release will not work with any version of Java > 8.



        If so, then you need to tell NetBeans to use Java 8 (and not Java 10) on startup. To do that:




        • Close NetBeans 8.2 if it is running.

        • Within your NetBeans 8.2 installation directory locate a directory named etc.

        • Within that directory locate a configuration file named netbeans.conf.

        • Open that file in any text editor. It is a simple text file containing property-value pairs.

        • Locate the line containing the property netbeans_jdkhome. If that line is prefixed with a # symbol (to denote a comment) then remove that #.

        • Replace whatever the value is for that property with the path to your JDK 8 installation. For example, on my Windows 10 machine that line looks like this for my NetBeans 8.2 installation: netbeans_jdkhome="C:Javajdk1.8.0_181"

        • Save your changes to netbeans.conf and start NetBeans. You should now be able to create a project in NetBeans 8.2 using JDK 8.


        One final point: it doesn't matter what value is returned for java -version in a Terminal window. All that matters for NetBeans 8.2 to work is that it is configured to use Java 8.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 30 '18 at 6:58









        skomisaskomisa

        1336




        1336






























            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%2f1386991%2fdowngrade-to-java-8-from-java-10-on-mac-so-that-netbeans-can-work%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

            Plaza Victoria

            In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

            How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...