Netbeans does not start on fresh Ubuntu 18.04 installation












17















After fresh Ubuntu 18.04 installation and afterwards a netbeans installation, netbeans does not start. netbeans was installed with



sudo apt install netbeans


some other java programms (at least Eclipse) do not start too.



when starting netbeans from commandline the JVM prints folowing WARNINGS:



➜  ~ netbeans
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/usr/share/netbeans/platform18/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
➜ ~









share|improve this question























  • I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04

    – JDKabangu
    Oct 3 '18 at 12:46






  • 1





    I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.

    – Line
    2 days ago
















17















After fresh Ubuntu 18.04 installation and afterwards a netbeans installation, netbeans does not start. netbeans was installed with



sudo apt install netbeans


some other java programms (at least Eclipse) do not start too.



when starting netbeans from commandline the JVM prints folowing WARNINGS:



➜  ~ netbeans
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/usr/share/netbeans/platform18/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
➜ ~









share|improve this question























  • I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04

    – JDKabangu
    Oct 3 '18 at 12:46






  • 1





    I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.

    – Line
    2 days ago














17












17








17


1






After fresh Ubuntu 18.04 installation and afterwards a netbeans installation, netbeans does not start. netbeans was installed with



sudo apt install netbeans


some other java programms (at least Eclipse) do not start too.



when starting netbeans from commandline the JVM prints folowing WARNINGS:



➜  ~ netbeans
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/usr/share/netbeans/platform18/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
➜ ~









share|improve this question














After fresh Ubuntu 18.04 installation and afterwards a netbeans installation, netbeans does not start. netbeans was installed with



sudo apt install netbeans


some other java programms (at least Eclipse) do not start too.



when starting netbeans from commandline the JVM prints folowing WARNINGS:



➜  ~ netbeans
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/usr/share/netbeans/platform18/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
➜ ~






java crash netbeans jvm






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 4 '18 at 15:00









neoexpertneoexpert

86114




86114













  • I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04

    – JDKabangu
    Oct 3 '18 at 12:46






  • 1





    I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.

    – Line
    2 days ago



















  • I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04

    – JDKabangu
    Oct 3 '18 at 12:46






  • 1





    I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.

    – Line
    2 days ago

















I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04

– JDKabangu
Oct 3 '18 at 12:46





I had the same problem, solve it by the following the step in this link linuxhelp.com/how-to-install-netbeans-ide-8-2-in-ubuntu-18-04

– JDKabangu
Oct 3 '18 at 12:46




1




1





I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.

– Line
2 days ago





I filled a bug about that: bugs.launchpad.net/ubuntu/+source/netbeans/+bug/1813039.

– Line
2 days ago










7 Answers
7






active

oldest

votes


















11














Ubuntu's repository still has Netbeans 8.1 but JDK 11. So I've downloaded Netbeans 8.2 from Netbeans Website



After downloading Netbeans 8.2, follow these steps:



sudo apt autoremove netbeans
cd Downloads
sudo chmod +x netbeans-8.2-linux.sh
./netbeans-8.2-linux.sh


and follow on screen instructions. Import settings and launch the netbeans from app drawer.



Also if you have any package with name as JDK 8, just remove it. You can find the packages installed by using



sudo apt list --installed


and remove all packages with name as openjdk-8- by using,



sudo apt autoremove <package_name>


For Installation of Netbeans 9.0 see here.






share|improve this answer





















  • 1





    So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.

    – neoexpert
    May 4 '18 at 18:18








  • 5





    Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.

    – Captain Giraffe
    May 7 '18 at 12:12



















4














I was able to get it working by installing and setting JDK8 as default.



I followed the instructions on this website:
https://linuxconfig.org/how-to-install-java-on-ubuntu-18-04-bionic-beaver-linux



specifically:



Adding the PPA repository:



sudo add-apt-repository ppa:webupd8team/java
sudo apt update


Install Java 8, and set as default:



sudo apt install oracle-java8-set-default


I was able to install using the netbeans .sh file installed after that






share|improve this answer


























  • this worked for me, should be the accepted answer.

    – Adriaan Nel
    Dec 9 '18 at 20:58



















3














Same problem with me as well after upgrading to Ubuntu 18.04. Netbeans stopped working. I tried many ways changing the configuration. The primary reason for this problem is java dependency. Netbeans is directly dependent on Oracle Java. Ubuntu 18.04 comes with default open jdk11 installed and set as default java. When Netbeans starts it checks for the dependencies and fails due to this. Though in few cases it opens but not all the features working. Sometime only few windows only working. Specially project explorer doesn't work.



To see the errors you can check the log file from the menu->view->IDELog



System Info: 
Product Version = NetBeans IDE 8.2 (Build 201609300101) (#5fd841261bf9)
Operating System = Linux version 4.15.0-34-generic running on amd64
Java; VM; Vendor = 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment 1.8.0_181-b13
Java Home = /usr/lib/jvm/java-8-oracle/jre
System Locale; Encoding = en_IN (nb); UTF-8
Home Directory = /home/mukesh
Current Directory = /home/mukesh
User Directory = /home/mukesh/.netbeans/8.2
Cache Directory = /home/mukesh/.cache/netbeans/8.2
Installation = /home/mukesh/netbeans-8.2/...

------------------------------------------------------------------------------


Finally what worked for me is.



Finally what worked for me is setting the java_home path in the installed directory of Netbeans. Netbeans 8.2 is installed in HOME directory in general. Sometime it can be different. You can find out using locate command. change path for java_home inside



/home/<Netbean DIR>/etc/netbeans.conf
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"


Restart the Netbeans and it will work all well.



NOTE: Changing the above in system /etc/netbeans.conf directory will not work.






share|improve this answer


























  • Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?

    – Youda008
    Dec 4 '18 at 20:33











  • From Netbeans website and installed with script.

    – Mukesh Singh Rathaur
    Dec 5 '18 at 4:17



















2














I was able to solve this by running sudo update-alternatives --config java and then selecting the java-8 option rather than the default java-11. You will need to have the java-8 openjdk package still installed for this to work though.






share|improve this answer































    2














    Remove Java 11 (which is not compatible with Netbeans 8.2 on Ubuntu 18.xx):



    sudo apt remove netbeans
    sudo apt remove openjdk-11-*


    Install Java 8 and Netbeans 8.2 (Netbeans is about 214MB):



    sudo apt install openjdk-8-jdk

    wget https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh

    sudo sh netbeans-8.2-linux.sh


    When it asks about Java Location select /usr/lib/jvm/java-8-openjdk-amd64.



    After installation you can access it via



    /usr/local/netbeans-8.2/bin/netbeans


    if you chose default location.






    share|improve this answer































      1














      What solved the problem for me was two things:




      1. Setting the jdk to Oracle Java 8 (if installed you can choose it while installing netbeans)

      2. Installing netbeans 8.2 instead of the default on Ubuntu which, for me, was 8.1






      share|improve this answer































        1














        I have the same problem ,though i resolved it!
        Actual problem which jdk version is used by Netbeans.As in the bionic beaver comes with new jdk version ,while old cofiguration of the Netbeans use the old one ,first uninstall existing netbeans and then download netbeans from the website the during installation ,seletct jdk8 as option .
        It worked for me , may work for you !



        I am learner, your suggestion are always welcome!






        share|improve this answer








        New contributor




        shreeshiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.




















          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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%2faskubuntu.com%2fquestions%2f1032030%2fnetbeans-does-not-start-on-fresh-ubuntu-18-04-installation%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          7 Answers
          7






          active

          oldest

          votes








          7 Answers
          7






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          11














          Ubuntu's repository still has Netbeans 8.1 but JDK 11. So I've downloaded Netbeans 8.2 from Netbeans Website



          After downloading Netbeans 8.2, follow these steps:



          sudo apt autoremove netbeans
          cd Downloads
          sudo chmod +x netbeans-8.2-linux.sh
          ./netbeans-8.2-linux.sh


          and follow on screen instructions. Import settings and launch the netbeans from app drawer.



          Also if you have any package with name as JDK 8, just remove it. You can find the packages installed by using



          sudo apt list --installed


          and remove all packages with name as openjdk-8- by using,



          sudo apt autoremove <package_name>


          For Installation of Netbeans 9.0 see here.






          share|improve this answer





















          • 1





            So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.

            – neoexpert
            May 4 '18 at 18:18








          • 5





            Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.

            – Captain Giraffe
            May 7 '18 at 12:12
















          11














          Ubuntu's repository still has Netbeans 8.1 but JDK 11. So I've downloaded Netbeans 8.2 from Netbeans Website



          After downloading Netbeans 8.2, follow these steps:



          sudo apt autoremove netbeans
          cd Downloads
          sudo chmod +x netbeans-8.2-linux.sh
          ./netbeans-8.2-linux.sh


          and follow on screen instructions. Import settings and launch the netbeans from app drawer.



          Also if you have any package with name as JDK 8, just remove it. You can find the packages installed by using



          sudo apt list --installed


          and remove all packages with name as openjdk-8- by using,



          sudo apt autoremove <package_name>


          For Installation of Netbeans 9.0 see here.






          share|improve this answer





















          • 1





            So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.

            – neoexpert
            May 4 '18 at 18:18








          • 5





            Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.

            – Captain Giraffe
            May 7 '18 at 12:12














          11












          11








          11







          Ubuntu's repository still has Netbeans 8.1 but JDK 11. So I've downloaded Netbeans 8.2 from Netbeans Website



          After downloading Netbeans 8.2, follow these steps:



          sudo apt autoremove netbeans
          cd Downloads
          sudo chmod +x netbeans-8.2-linux.sh
          ./netbeans-8.2-linux.sh


          and follow on screen instructions. Import settings and launch the netbeans from app drawer.



          Also if you have any package with name as JDK 8, just remove it. You can find the packages installed by using



          sudo apt list --installed


          and remove all packages with name as openjdk-8- by using,



          sudo apt autoremove <package_name>


          For Installation of Netbeans 9.0 see here.






          share|improve this answer















          Ubuntu's repository still has Netbeans 8.1 but JDK 11. So I've downloaded Netbeans 8.2 from Netbeans Website



          After downloading Netbeans 8.2, follow these steps:



          sudo apt autoremove netbeans
          cd Downloads
          sudo chmod +x netbeans-8.2-linux.sh
          ./netbeans-8.2-linux.sh


          and follow on screen instructions. Import settings and launch the netbeans from app drawer.



          Also if you have any package with name as JDK 8, just remove it. You can find the packages installed by using



          sudo apt list --installed


          and remove all packages with name as openjdk-8- by using,



          sudo apt autoremove <package_name>


          For Installation of Netbeans 9.0 see here.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Oct 1 '18 at 23:17

























          answered May 4 '18 at 18:00









          KulfyKulfy

          4,33151442




          4,33151442








          • 1





            So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.

            – neoexpert
            May 4 '18 at 18:18








          • 5





            Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.

            – Captain Giraffe
            May 7 '18 at 12:12














          • 1





            So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.

            – neoexpert
            May 4 '18 at 18:18








          • 5





            Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.

            – Captain Giraffe
            May 7 '18 at 12:12








          1




          1





          So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.

          – neoexpert
          May 4 '18 at 18:18







          So I think the current version of java on 18.04 should not be marked as "stable". Eclipse does not work too.

          – neoexpert
          May 4 '18 at 18:18






          5




          5





          Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.

          – Captain Giraffe
          May 7 '18 at 12:12





          Netbeans seems to be quite broken currently under 18.04. I have tried several jdk versions(open and oracle) as well as the default package and the netbeans installer. The Windows or Mac comment is not pertinent as this issue is related to the state of 18.04. Everything works fine on previous releases.

          – Captain Giraffe
          May 7 '18 at 12:12













          4














          I was able to get it working by installing and setting JDK8 as default.



          I followed the instructions on this website:
          https://linuxconfig.org/how-to-install-java-on-ubuntu-18-04-bionic-beaver-linux



          specifically:



          Adding the PPA repository:



          sudo add-apt-repository ppa:webupd8team/java
          sudo apt update


          Install Java 8, and set as default:



          sudo apt install oracle-java8-set-default


          I was able to install using the netbeans .sh file installed after that






          share|improve this answer


























          • this worked for me, should be the accepted answer.

            – Adriaan Nel
            Dec 9 '18 at 20:58
















          4














          I was able to get it working by installing and setting JDK8 as default.



          I followed the instructions on this website:
          https://linuxconfig.org/how-to-install-java-on-ubuntu-18-04-bionic-beaver-linux



          specifically:



          Adding the PPA repository:



          sudo add-apt-repository ppa:webupd8team/java
          sudo apt update


          Install Java 8, and set as default:



          sudo apt install oracle-java8-set-default


          I was able to install using the netbeans .sh file installed after that






          share|improve this answer


























          • this worked for me, should be the accepted answer.

            – Adriaan Nel
            Dec 9 '18 at 20:58














          4












          4








          4







          I was able to get it working by installing and setting JDK8 as default.



          I followed the instructions on this website:
          https://linuxconfig.org/how-to-install-java-on-ubuntu-18-04-bionic-beaver-linux



          specifically:



          Adding the PPA repository:



          sudo add-apt-repository ppa:webupd8team/java
          sudo apt update


          Install Java 8, and set as default:



          sudo apt install oracle-java8-set-default


          I was able to install using the netbeans .sh file installed after that






          share|improve this answer















          I was able to get it working by installing and setting JDK8 as default.



          I followed the instructions on this website:
          https://linuxconfig.org/how-to-install-java-on-ubuntu-18-04-bionic-beaver-linux



          specifically:



          Adding the PPA repository:



          sudo add-apt-repository ppa:webupd8team/java
          sudo apt update


          Install Java 8, and set as default:



          sudo apt install oracle-java8-set-default


          I was able to install using the netbeans .sh file installed after that







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 5 '18 at 4:16









          karel

          58.5k13128147




          58.5k13128147










          answered Sep 5 '18 at 0:17









          Steve WhitfordSteve Whitford

          411




          411













          • this worked for me, should be the accepted answer.

            – Adriaan Nel
            Dec 9 '18 at 20:58



















          • this worked for me, should be the accepted answer.

            – Adriaan Nel
            Dec 9 '18 at 20:58

















          this worked for me, should be the accepted answer.

          – Adriaan Nel
          Dec 9 '18 at 20:58





          this worked for me, should be the accepted answer.

          – Adriaan Nel
          Dec 9 '18 at 20:58











          3














          Same problem with me as well after upgrading to Ubuntu 18.04. Netbeans stopped working. I tried many ways changing the configuration. The primary reason for this problem is java dependency. Netbeans is directly dependent on Oracle Java. Ubuntu 18.04 comes with default open jdk11 installed and set as default java. When Netbeans starts it checks for the dependencies and fails due to this. Though in few cases it opens but not all the features working. Sometime only few windows only working. Specially project explorer doesn't work.



          To see the errors you can check the log file from the menu->view->IDELog



          System Info: 
          Product Version = NetBeans IDE 8.2 (Build 201609300101) (#5fd841261bf9)
          Operating System = Linux version 4.15.0-34-generic running on amd64
          Java; VM; Vendor = 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13; Oracle Corporation
          Runtime = Java(TM) SE Runtime Environment 1.8.0_181-b13
          Java Home = /usr/lib/jvm/java-8-oracle/jre
          System Locale; Encoding = en_IN (nb); UTF-8
          Home Directory = /home/mukesh
          Current Directory = /home/mukesh
          User Directory = /home/mukesh/.netbeans/8.2
          Cache Directory = /home/mukesh/.cache/netbeans/8.2
          Installation = /home/mukesh/netbeans-8.2/...

          ------------------------------------------------------------------------------


          Finally what worked for me is.



          Finally what worked for me is setting the java_home path in the installed directory of Netbeans. Netbeans 8.2 is installed in HOME directory in general. Sometime it can be different. You can find out using locate command. change path for java_home inside



          /home/<Netbean DIR>/etc/netbeans.conf
          netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"


          Restart the Netbeans and it will work all well.



          NOTE: Changing the above in system /etc/netbeans.conf directory will not work.






          share|improve this answer


























          • Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?

            – Youda008
            Dec 4 '18 at 20:33











          • From Netbeans website and installed with script.

            – Mukesh Singh Rathaur
            Dec 5 '18 at 4:17
















          3














          Same problem with me as well after upgrading to Ubuntu 18.04. Netbeans stopped working. I tried many ways changing the configuration. The primary reason for this problem is java dependency. Netbeans is directly dependent on Oracle Java. Ubuntu 18.04 comes with default open jdk11 installed and set as default java. When Netbeans starts it checks for the dependencies and fails due to this. Though in few cases it opens but not all the features working. Sometime only few windows only working. Specially project explorer doesn't work.



          To see the errors you can check the log file from the menu->view->IDELog



          System Info: 
          Product Version = NetBeans IDE 8.2 (Build 201609300101) (#5fd841261bf9)
          Operating System = Linux version 4.15.0-34-generic running on amd64
          Java; VM; Vendor = 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13; Oracle Corporation
          Runtime = Java(TM) SE Runtime Environment 1.8.0_181-b13
          Java Home = /usr/lib/jvm/java-8-oracle/jre
          System Locale; Encoding = en_IN (nb); UTF-8
          Home Directory = /home/mukesh
          Current Directory = /home/mukesh
          User Directory = /home/mukesh/.netbeans/8.2
          Cache Directory = /home/mukesh/.cache/netbeans/8.2
          Installation = /home/mukesh/netbeans-8.2/...

          ------------------------------------------------------------------------------


          Finally what worked for me is.



          Finally what worked for me is setting the java_home path in the installed directory of Netbeans. Netbeans 8.2 is installed in HOME directory in general. Sometime it can be different. You can find out using locate command. change path for java_home inside



          /home/<Netbean DIR>/etc/netbeans.conf
          netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"


          Restart the Netbeans and it will work all well.



          NOTE: Changing the above in system /etc/netbeans.conf directory will not work.






          share|improve this answer


























          • Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?

            – Youda008
            Dec 4 '18 at 20:33











          • From Netbeans website and installed with script.

            – Mukesh Singh Rathaur
            Dec 5 '18 at 4:17














          3












          3








          3







          Same problem with me as well after upgrading to Ubuntu 18.04. Netbeans stopped working. I tried many ways changing the configuration. The primary reason for this problem is java dependency. Netbeans is directly dependent on Oracle Java. Ubuntu 18.04 comes with default open jdk11 installed and set as default java. When Netbeans starts it checks for the dependencies and fails due to this. Though in few cases it opens but not all the features working. Sometime only few windows only working. Specially project explorer doesn't work.



          To see the errors you can check the log file from the menu->view->IDELog



          System Info: 
          Product Version = NetBeans IDE 8.2 (Build 201609300101) (#5fd841261bf9)
          Operating System = Linux version 4.15.0-34-generic running on amd64
          Java; VM; Vendor = 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13; Oracle Corporation
          Runtime = Java(TM) SE Runtime Environment 1.8.0_181-b13
          Java Home = /usr/lib/jvm/java-8-oracle/jre
          System Locale; Encoding = en_IN (nb); UTF-8
          Home Directory = /home/mukesh
          Current Directory = /home/mukesh
          User Directory = /home/mukesh/.netbeans/8.2
          Cache Directory = /home/mukesh/.cache/netbeans/8.2
          Installation = /home/mukesh/netbeans-8.2/...

          ------------------------------------------------------------------------------


          Finally what worked for me is.



          Finally what worked for me is setting the java_home path in the installed directory of Netbeans. Netbeans 8.2 is installed in HOME directory in general. Sometime it can be different. You can find out using locate command. change path for java_home inside



          /home/<Netbean DIR>/etc/netbeans.conf
          netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"


          Restart the Netbeans and it will work all well.



          NOTE: Changing the above in system /etc/netbeans.conf directory will not work.






          share|improve this answer















          Same problem with me as well after upgrading to Ubuntu 18.04. Netbeans stopped working. I tried many ways changing the configuration. The primary reason for this problem is java dependency. Netbeans is directly dependent on Oracle Java. Ubuntu 18.04 comes with default open jdk11 installed and set as default java. When Netbeans starts it checks for the dependencies and fails due to this. Though in few cases it opens but not all the features working. Sometime only few windows only working. Specially project explorer doesn't work.



          To see the errors you can check the log file from the menu->view->IDELog



          System Info: 
          Product Version = NetBeans IDE 8.2 (Build 201609300101) (#5fd841261bf9)
          Operating System = Linux version 4.15.0-34-generic running on amd64
          Java; VM; Vendor = 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13; Oracle Corporation
          Runtime = Java(TM) SE Runtime Environment 1.8.0_181-b13
          Java Home = /usr/lib/jvm/java-8-oracle/jre
          System Locale; Encoding = en_IN (nb); UTF-8
          Home Directory = /home/mukesh
          Current Directory = /home/mukesh
          User Directory = /home/mukesh/.netbeans/8.2
          Cache Directory = /home/mukesh/.cache/netbeans/8.2
          Installation = /home/mukesh/netbeans-8.2/...

          ------------------------------------------------------------------------------


          Finally what worked for me is.



          Finally what worked for me is setting the java_home path in the installed directory of Netbeans. Netbeans 8.2 is installed in HOME directory in general. Sometime it can be different. You can find out using locate command. change path for java_home inside



          /home/<Netbean DIR>/etc/netbeans.conf
          netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"


          Restart the Netbeans and it will work all well.



          NOTE: Changing the above in system /etc/netbeans.conf directory will not work.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Oct 13 '18 at 13:27









          pomsky

          29.8k1192121




          29.8k1192121










          answered Oct 1 '18 at 8:14









          Mukesh Singh RathaurMukesh Singh Rathaur

          1312




          1312













          • Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?

            – Youda008
            Dec 4 '18 at 20:33











          • From Netbeans website and installed with script.

            – Mukesh Singh Rathaur
            Dec 5 '18 at 4:17



















          • Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?

            – Youda008
            Dec 4 '18 at 20:33











          • From Netbeans website and installed with script.

            – Mukesh Singh Rathaur
            Dec 5 '18 at 4:17

















          Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?

          – Youda008
          Dec 4 '18 at 20:33





          Did you use the Netbeans from Ubuntu repository or downloaded from Netbeans website and installed by script?

          – Youda008
          Dec 4 '18 at 20:33













          From Netbeans website and installed with script.

          – Mukesh Singh Rathaur
          Dec 5 '18 at 4:17





          From Netbeans website and installed with script.

          – Mukesh Singh Rathaur
          Dec 5 '18 at 4:17











          2














          I was able to solve this by running sudo update-alternatives --config java and then selecting the java-8 option rather than the default java-11. You will need to have the java-8 openjdk package still installed for this to work though.






          share|improve this answer




























            2














            I was able to solve this by running sudo update-alternatives --config java and then selecting the java-8 option rather than the default java-11. You will need to have the java-8 openjdk package still installed for this to work though.






            share|improve this answer


























              2












              2








              2







              I was able to solve this by running sudo update-alternatives --config java and then selecting the java-8 option rather than the default java-11. You will need to have the java-8 openjdk package still installed for this to work though.






              share|improve this answer













              I was able to solve this by running sudo update-alternatives --config java and then selecting the java-8 option rather than the default java-11. You will need to have the java-8 openjdk package still installed for this to work though.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Aug 22 '18 at 22:30









              AidanAidan

              211




              211























                  2














                  Remove Java 11 (which is not compatible with Netbeans 8.2 on Ubuntu 18.xx):



                  sudo apt remove netbeans
                  sudo apt remove openjdk-11-*


                  Install Java 8 and Netbeans 8.2 (Netbeans is about 214MB):



                  sudo apt install openjdk-8-jdk

                  wget https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh

                  sudo sh netbeans-8.2-linux.sh


                  When it asks about Java Location select /usr/lib/jvm/java-8-openjdk-amd64.



                  After installation you can access it via



                  /usr/local/netbeans-8.2/bin/netbeans


                  if you chose default location.






                  share|improve this answer




























                    2














                    Remove Java 11 (which is not compatible with Netbeans 8.2 on Ubuntu 18.xx):



                    sudo apt remove netbeans
                    sudo apt remove openjdk-11-*


                    Install Java 8 and Netbeans 8.2 (Netbeans is about 214MB):



                    sudo apt install openjdk-8-jdk

                    wget https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh

                    sudo sh netbeans-8.2-linux.sh


                    When it asks about Java Location select /usr/lib/jvm/java-8-openjdk-amd64.



                    After installation you can access it via



                    /usr/local/netbeans-8.2/bin/netbeans


                    if you chose default location.






                    share|improve this answer


























                      2












                      2








                      2







                      Remove Java 11 (which is not compatible with Netbeans 8.2 on Ubuntu 18.xx):



                      sudo apt remove netbeans
                      sudo apt remove openjdk-11-*


                      Install Java 8 and Netbeans 8.2 (Netbeans is about 214MB):



                      sudo apt install openjdk-8-jdk

                      wget https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh

                      sudo sh netbeans-8.2-linux.sh


                      When it asks about Java Location select /usr/lib/jvm/java-8-openjdk-amd64.



                      After installation you can access it via



                      /usr/local/netbeans-8.2/bin/netbeans


                      if you chose default location.






                      share|improve this answer













                      Remove Java 11 (which is not compatible with Netbeans 8.2 on Ubuntu 18.xx):



                      sudo apt remove netbeans
                      sudo apt remove openjdk-11-*


                      Install Java 8 and Netbeans 8.2 (Netbeans is about 214MB):



                      sudo apt install openjdk-8-jdk

                      wget https://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh

                      sudo sh netbeans-8.2-linux.sh


                      When it asks about Java Location select /usr/lib/jvm/java-8-openjdk-amd64.



                      After installation you can access it via



                      /usr/local/netbeans-8.2/bin/netbeans


                      if you chose default location.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Nov 17 '18 at 9:54









                      OlimjonOlimjon

                      2,136624




                      2,136624























                          1














                          What solved the problem for me was two things:




                          1. Setting the jdk to Oracle Java 8 (if installed you can choose it while installing netbeans)

                          2. Installing netbeans 8.2 instead of the default on Ubuntu which, for me, was 8.1






                          share|improve this answer




























                            1














                            What solved the problem for me was two things:




                            1. Setting the jdk to Oracle Java 8 (if installed you can choose it while installing netbeans)

                            2. Installing netbeans 8.2 instead of the default on Ubuntu which, for me, was 8.1






                            share|improve this answer


























                              1












                              1








                              1







                              What solved the problem for me was two things:




                              1. Setting the jdk to Oracle Java 8 (if installed you can choose it while installing netbeans)

                              2. Installing netbeans 8.2 instead of the default on Ubuntu which, for me, was 8.1






                              share|improve this answer













                              What solved the problem for me was two things:




                              1. Setting the jdk to Oracle Java 8 (if installed you can choose it while installing netbeans)

                              2. Installing netbeans 8.2 instead of the default on Ubuntu which, for me, was 8.1







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Oct 13 '18 at 13:14









                              Muhammad A. MotaweMuhammad A. Motawe

                              112




                              112























                                  1














                                  I have the same problem ,though i resolved it!
                                  Actual problem which jdk version is used by Netbeans.As in the bionic beaver comes with new jdk version ,while old cofiguration of the Netbeans use the old one ,first uninstall existing netbeans and then download netbeans from the website the during installation ,seletct jdk8 as option .
                                  It worked for me , may work for you !



                                  I am learner, your suggestion are always welcome!






                                  share|improve this answer








                                  New contributor




                                  shreeshiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                  Check out our Code of Conduct.

























                                    1














                                    I have the same problem ,though i resolved it!
                                    Actual problem which jdk version is used by Netbeans.As in the bionic beaver comes with new jdk version ,while old cofiguration of the Netbeans use the old one ,first uninstall existing netbeans and then download netbeans from the website the during installation ,seletct jdk8 as option .
                                    It worked for me , may work for you !



                                    I am learner, your suggestion are always welcome!






                                    share|improve this answer








                                    New contributor




                                    shreeshiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                    Check out our Code of Conduct.























                                      1












                                      1








                                      1







                                      I have the same problem ,though i resolved it!
                                      Actual problem which jdk version is used by Netbeans.As in the bionic beaver comes with new jdk version ,while old cofiguration of the Netbeans use the old one ,first uninstall existing netbeans and then download netbeans from the website the during installation ,seletct jdk8 as option .
                                      It worked for me , may work for you !



                                      I am learner, your suggestion are always welcome!






                                      share|improve this answer








                                      New contributor




                                      shreeshiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.










                                      I have the same problem ,though i resolved it!
                                      Actual problem which jdk version is used by Netbeans.As in the bionic beaver comes with new jdk version ,while old cofiguration of the Netbeans use the old one ,first uninstall existing netbeans and then download netbeans from the website the during installation ,seletct jdk8 as option .
                                      It worked for me , may work for you !



                                      I am learner, your suggestion are always welcome!







                                      share|improve this answer








                                      New contributor




                                      shreeshiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.









                                      share|improve this answer



                                      share|improve this answer






                                      New contributor




                                      shreeshiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.









                                      answered Jan 22 at 19:23









                                      shreeshivshreeshiv

                                      111




                                      111




                                      New contributor




                                      shreeshiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.





                                      New contributor





                                      shreeshiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.






                                      shreeshiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                      Check out our Code of Conduct.






























                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Ask Ubuntu!


                                          • 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%2faskubuntu.com%2fquestions%2f1032030%2fnetbeans-does-not-start-on-fresh-ubuntu-18-04-installation%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

                                          數位音樂下載

                                          When can things happen in Etherscan, such as the picture below?

                                          格利澤436b