Netbeans installed via APT opens but then closes, “java.lang.NoClassDefFoundError”











up vote
0
down vote

favorite












I have a brand new Ubuntu 18.10 VM (hosted on Windows 10), built from an osboxes.org image. Aside from totally unrelated minor stuff, all I've done on this virgin OS is:



sudo apt install git
sudo apt install ant
sudo apt install netbeans


but then when I tried to run netbeans, the command was not found. I had been away from my desk after the install, so I ran sudo apt install netbeans a second time. After that, netbeans command is found, and a NetBeansIDE splash window shows for a while, but then it goes away.



Now I look at ~/.netbeans/var/log/messages.log and see a java.lang.NoClassDefFoundError.



In detail, it appears that java was already installed in the VM image from osboxes. java -version reports version 11.0.1 2018-10-16.



Having seen other posts, I did a sudo apt-get remove netbeans as well as sudo apt-get purge netbeans and then sudo apt-get install netbeans. This didn't help.



In further detail, it appears that the version of NetBeans being installed is 8.1. The content of messages.log is below:





  Log Session: Friday, November 16, 2018 10:31:23 AM EST
System Info:
Product Version = NetBeans IDE 8.1 (Build 20180424-debian-8.1)
Operating System = Linux version 4.18.0-11-generic running on amd64
Java; VM; Vendor = 1.8.0_181; OpenJDK 64-Bit Server VM 25.181-b13; Oracle Corporation
Runtime = OpenJDK Runtime Environment 1.8.0_181-8u181-b13-1ubuntu0.18.10.1-b13
Java Home = /usr/lib/jvm/java-8-openjdk-amd64/jre
System Locale; Encoding = en_US (nb); UTF-8
Home Directory = /home/helmut
Current Directory = /home/helmut
User Directory = /home/helmut/.netbeans/8.1
Cache Directory = /home/helmut/.cache/netbeans/8.1
Installation = /usr/share/netbeans/8.1/nb
/usr/share/netbeans/8.1/ide
/usr/share/netbeans/8.1/java
/usr/share/netbeans/8.1/apisupport
/usr/share/netbeans/8.1/harness
/usr/share/netbeans/8.1/platform
Boot & Ext. Classpath = /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunpkcs11.jar
Application Classpath = /usr/share/java/jcodings.jar:/usr/share/netbeans/8.1/platform/lib/boot.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-modules.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util-lookup.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util-ui.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/dt.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Startup Classpath = /usr/share/netbeans/8.1/platform/core/org-openide-filesystems-compat8.jar:/usr/share/netbeans/8.1/platform/core/core-base.jar:/usr/share/netbeans/8.1/platform/core/asm-all-5.0.1.jar:/usr/share/netbeans/8.1/platform/core/core.jar:/usr/share/netbeans/8.1/platform/core/org-openide-filesystems.jar:/usr/share/netbeans/8.1/platform/core/org-netbeans-libs-asm.jar:/usr/share/netbeans/8.1/nb/core/org-netbeans-upgrader.jar:/usr/share/netbeans/8.1/nb/core/locale/core_nb.jar

java.lang.NoClassDefFoundError: org/eclipse/osgi/baseadaptor/HookConfigurator while loading org.netbeans.modules.netbinox.NetbinoxHooks; see http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound
at org.netbeans.ProxyClassLoader.selfLoadClass(Unknown Source)
at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.netbeans.modules.netbinox.NetbinoxFactory.newFramework(Unknown Source)
at org.netbeans.core.netigso.Netigso.prepare(Unknown Source)
at org.netbeans.NetigsoHandle.turnOn(Unknown Source)
at org.netbeans.ModuleManager.enable(Unknown Source)
INFO [null]: Last record repeated again.
at org.netbeans.core.startup.ModuleList.installNew(Unknown Source)
at org.netbeans.core.startup.ModuleList.trigger(Unknown Source)
at org.netbeans.core.startup.ModuleSystem.restore(Unknown Source)
at org.netbeans.core.startup.Main.getModuleSystem(Unknown Source)
INFO [null]: Last record repeated again.
at org.netbeans.core.startup.Main.start(Unknown Source)
at org.netbeans.core.startup.TopThreadGroup.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/osgi/baseadaptor/HookConfigurator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at org.netbeans.JarClassLoader.doLoadClass(Unknown Source)
... 16 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.osgi.baseadaptor.HookConfigurator starting from ModuleCL@459c3d83[org.netbeans.modules.netbinox] with possible defining loaders [ModuleCL@459c3d83[org.netbeans.modules.netbinox]] and declared parents [org.netbeans.MainImpl$BootClassLoader@41629346, ModuleCL@7636aab3[org.netbeans.core.netigso], ModuleCL@629a3076[org.netbeans.libs.osgi]]
at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 19 more









share|improve this question









New contributor




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
















  • 1




    I think you made a typo on your brand part, it should be 18.10, not 12.10. Am I correct?
    – Olimjon
    Nov 16 at 16:21












  • Corrected to 18.10. Any ideas on how to fix this?
    – Dr.Lightning
    Nov 16 at 19:27










  • This might help: askubuntu.com/a/1032096/816190 or this askubuntu.com/a/1049403/816190
    – Kulfy
    Nov 16 at 19:36












  • Possible duplicate of java problem with eclipse and netbeans
    – karel
    2 days ago






  • 1




    Possible duplicate of java problem with eclipse and netbeans
    – George Udosen
    17 hours ago















up vote
0
down vote

favorite












I have a brand new Ubuntu 18.10 VM (hosted on Windows 10), built from an osboxes.org image. Aside from totally unrelated minor stuff, all I've done on this virgin OS is:



sudo apt install git
sudo apt install ant
sudo apt install netbeans


but then when I tried to run netbeans, the command was not found. I had been away from my desk after the install, so I ran sudo apt install netbeans a second time. After that, netbeans command is found, and a NetBeansIDE splash window shows for a while, but then it goes away.



Now I look at ~/.netbeans/var/log/messages.log and see a java.lang.NoClassDefFoundError.



In detail, it appears that java was already installed in the VM image from osboxes. java -version reports version 11.0.1 2018-10-16.



Having seen other posts, I did a sudo apt-get remove netbeans as well as sudo apt-get purge netbeans and then sudo apt-get install netbeans. This didn't help.



In further detail, it appears that the version of NetBeans being installed is 8.1. The content of messages.log is below:





  Log Session: Friday, November 16, 2018 10:31:23 AM EST
System Info:
Product Version = NetBeans IDE 8.1 (Build 20180424-debian-8.1)
Operating System = Linux version 4.18.0-11-generic running on amd64
Java; VM; Vendor = 1.8.0_181; OpenJDK 64-Bit Server VM 25.181-b13; Oracle Corporation
Runtime = OpenJDK Runtime Environment 1.8.0_181-8u181-b13-1ubuntu0.18.10.1-b13
Java Home = /usr/lib/jvm/java-8-openjdk-amd64/jre
System Locale; Encoding = en_US (nb); UTF-8
Home Directory = /home/helmut
Current Directory = /home/helmut
User Directory = /home/helmut/.netbeans/8.1
Cache Directory = /home/helmut/.cache/netbeans/8.1
Installation = /usr/share/netbeans/8.1/nb
/usr/share/netbeans/8.1/ide
/usr/share/netbeans/8.1/java
/usr/share/netbeans/8.1/apisupport
/usr/share/netbeans/8.1/harness
/usr/share/netbeans/8.1/platform
Boot & Ext. Classpath = /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunpkcs11.jar
Application Classpath = /usr/share/java/jcodings.jar:/usr/share/netbeans/8.1/platform/lib/boot.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-modules.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util-lookup.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util-ui.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/dt.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Startup Classpath = /usr/share/netbeans/8.1/platform/core/org-openide-filesystems-compat8.jar:/usr/share/netbeans/8.1/platform/core/core-base.jar:/usr/share/netbeans/8.1/platform/core/asm-all-5.0.1.jar:/usr/share/netbeans/8.1/platform/core/core.jar:/usr/share/netbeans/8.1/platform/core/org-openide-filesystems.jar:/usr/share/netbeans/8.1/platform/core/org-netbeans-libs-asm.jar:/usr/share/netbeans/8.1/nb/core/org-netbeans-upgrader.jar:/usr/share/netbeans/8.1/nb/core/locale/core_nb.jar

java.lang.NoClassDefFoundError: org/eclipse/osgi/baseadaptor/HookConfigurator while loading org.netbeans.modules.netbinox.NetbinoxHooks; see http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound
at org.netbeans.ProxyClassLoader.selfLoadClass(Unknown Source)
at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.netbeans.modules.netbinox.NetbinoxFactory.newFramework(Unknown Source)
at org.netbeans.core.netigso.Netigso.prepare(Unknown Source)
at org.netbeans.NetigsoHandle.turnOn(Unknown Source)
at org.netbeans.ModuleManager.enable(Unknown Source)
INFO [null]: Last record repeated again.
at org.netbeans.core.startup.ModuleList.installNew(Unknown Source)
at org.netbeans.core.startup.ModuleList.trigger(Unknown Source)
at org.netbeans.core.startup.ModuleSystem.restore(Unknown Source)
at org.netbeans.core.startup.Main.getModuleSystem(Unknown Source)
INFO [null]: Last record repeated again.
at org.netbeans.core.startup.Main.start(Unknown Source)
at org.netbeans.core.startup.TopThreadGroup.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/osgi/baseadaptor/HookConfigurator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at org.netbeans.JarClassLoader.doLoadClass(Unknown Source)
... 16 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.osgi.baseadaptor.HookConfigurator starting from ModuleCL@459c3d83[org.netbeans.modules.netbinox] with possible defining loaders [ModuleCL@459c3d83[org.netbeans.modules.netbinox]] and declared parents [org.netbeans.MainImpl$BootClassLoader@41629346, ModuleCL@7636aab3[org.netbeans.core.netigso], ModuleCL@629a3076[org.netbeans.libs.osgi]]
at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 19 more









share|improve this question









New contributor




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
















  • 1




    I think you made a typo on your brand part, it should be 18.10, not 12.10. Am I correct?
    – Olimjon
    Nov 16 at 16:21












  • Corrected to 18.10. Any ideas on how to fix this?
    – Dr.Lightning
    Nov 16 at 19:27










  • This might help: askubuntu.com/a/1032096/816190 or this askubuntu.com/a/1049403/816190
    – Kulfy
    Nov 16 at 19:36












  • Possible duplicate of java problem with eclipse and netbeans
    – karel
    2 days ago






  • 1




    Possible duplicate of java problem with eclipse and netbeans
    – George Udosen
    17 hours ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a brand new Ubuntu 18.10 VM (hosted on Windows 10), built from an osboxes.org image. Aside from totally unrelated minor stuff, all I've done on this virgin OS is:



sudo apt install git
sudo apt install ant
sudo apt install netbeans


but then when I tried to run netbeans, the command was not found. I had been away from my desk after the install, so I ran sudo apt install netbeans a second time. After that, netbeans command is found, and a NetBeansIDE splash window shows for a while, but then it goes away.



Now I look at ~/.netbeans/var/log/messages.log and see a java.lang.NoClassDefFoundError.



In detail, it appears that java was already installed in the VM image from osboxes. java -version reports version 11.0.1 2018-10-16.



Having seen other posts, I did a sudo apt-get remove netbeans as well as sudo apt-get purge netbeans and then sudo apt-get install netbeans. This didn't help.



In further detail, it appears that the version of NetBeans being installed is 8.1. The content of messages.log is below:





  Log Session: Friday, November 16, 2018 10:31:23 AM EST
System Info:
Product Version = NetBeans IDE 8.1 (Build 20180424-debian-8.1)
Operating System = Linux version 4.18.0-11-generic running on amd64
Java; VM; Vendor = 1.8.0_181; OpenJDK 64-Bit Server VM 25.181-b13; Oracle Corporation
Runtime = OpenJDK Runtime Environment 1.8.0_181-8u181-b13-1ubuntu0.18.10.1-b13
Java Home = /usr/lib/jvm/java-8-openjdk-amd64/jre
System Locale; Encoding = en_US (nb); UTF-8
Home Directory = /home/helmut
Current Directory = /home/helmut
User Directory = /home/helmut/.netbeans/8.1
Cache Directory = /home/helmut/.cache/netbeans/8.1
Installation = /usr/share/netbeans/8.1/nb
/usr/share/netbeans/8.1/ide
/usr/share/netbeans/8.1/java
/usr/share/netbeans/8.1/apisupport
/usr/share/netbeans/8.1/harness
/usr/share/netbeans/8.1/platform
Boot & Ext. Classpath = /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunpkcs11.jar
Application Classpath = /usr/share/java/jcodings.jar:/usr/share/netbeans/8.1/platform/lib/boot.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-modules.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util-lookup.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util-ui.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/dt.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Startup Classpath = /usr/share/netbeans/8.1/platform/core/org-openide-filesystems-compat8.jar:/usr/share/netbeans/8.1/platform/core/core-base.jar:/usr/share/netbeans/8.1/platform/core/asm-all-5.0.1.jar:/usr/share/netbeans/8.1/platform/core/core.jar:/usr/share/netbeans/8.1/platform/core/org-openide-filesystems.jar:/usr/share/netbeans/8.1/platform/core/org-netbeans-libs-asm.jar:/usr/share/netbeans/8.1/nb/core/org-netbeans-upgrader.jar:/usr/share/netbeans/8.1/nb/core/locale/core_nb.jar

java.lang.NoClassDefFoundError: org/eclipse/osgi/baseadaptor/HookConfigurator while loading org.netbeans.modules.netbinox.NetbinoxHooks; see http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound
at org.netbeans.ProxyClassLoader.selfLoadClass(Unknown Source)
at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.netbeans.modules.netbinox.NetbinoxFactory.newFramework(Unknown Source)
at org.netbeans.core.netigso.Netigso.prepare(Unknown Source)
at org.netbeans.NetigsoHandle.turnOn(Unknown Source)
at org.netbeans.ModuleManager.enable(Unknown Source)
INFO [null]: Last record repeated again.
at org.netbeans.core.startup.ModuleList.installNew(Unknown Source)
at org.netbeans.core.startup.ModuleList.trigger(Unknown Source)
at org.netbeans.core.startup.ModuleSystem.restore(Unknown Source)
at org.netbeans.core.startup.Main.getModuleSystem(Unknown Source)
INFO [null]: Last record repeated again.
at org.netbeans.core.startup.Main.start(Unknown Source)
at org.netbeans.core.startup.TopThreadGroup.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/osgi/baseadaptor/HookConfigurator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at org.netbeans.JarClassLoader.doLoadClass(Unknown Source)
... 16 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.osgi.baseadaptor.HookConfigurator starting from ModuleCL@459c3d83[org.netbeans.modules.netbinox] with possible defining loaders [ModuleCL@459c3d83[org.netbeans.modules.netbinox]] and declared parents [org.netbeans.MainImpl$BootClassLoader@41629346, ModuleCL@7636aab3[org.netbeans.core.netigso], ModuleCL@629a3076[org.netbeans.libs.osgi]]
at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 19 more









share|improve this question









New contributor




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











I have a brand new Ubuntu 18.10 VM (hosted on Windows 10), built from an osboxes.org image. Aside from totally unrelated minor stuff, all I've done on this virgin OS is:



sudo apt install git
sudo apt install ant
sudo apt install netbeans


but then when I tried to run netbeans, the command was not found. I had been away from my desk after the install, so I ran sudo apt install netbeans a second time. After that, netbeans command is found, and a NetBeansIDE splash window shows for a while, but then it goes away.



Now I look at ~/.netbeans/var/log/messages.log and see a java.lang.NoClassDefFoundError.



In detail, it appears that java was already installed in the VM image from osboxes. java -version reports version 11.0.1 2018-10-16.



Having seen other posts, I did a sudo apt-get remove netbeans as well as sudo apt-get purge netbeans and then sudo apt-get install netbeans. This didn't help.



In further detail, it appears that the version of NetBeans being installed is 8.1. The content of messages.log is below:





  Log Session: Friday, November 16, 2018 10:31:23 AM EST
System Info:
Product Version = NetBeans IDE 8.1 (Build 20180424-debian-8.1)
Operating System = Linux version 4.18.0-11-generic running on amd64
Java; VM; Vendor = 1.8.0_181; OpenJDK 64-Bit Server VM 25.181-b13; Oracle Corporation
Runtime = OpenJDK Runtime Environment 1.8.0_181-8u181-b13-1ubuntu0.18.10.1-b13
Java Home = /usr/lib/jvm/java-8-openjdk-amd64/jre
System Locale; Encoding = en_US (nb); UTF-8
Home Directory = /home/helmut
Current Directory = /home/helmut
User Directory = /home/helmut/.netbeans/8.1
Cache Directory = /home/helmut/.cache/netbeans/8.1
Installation = /usr/share/netbeans/8.1/nb
/usr/share/netbeans/8.1/ide
/usr/share/netbeans/8.1/java
/usr/share/netbeans/8.1/apisupport
/usr/share/netbeans/8.1/harness
/usr/share/netbeans/8.1/platform
Boot & Ext. Classpath = /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/sunpkcs11.jar
Application Classpath = /usr/share/java/jcodings.jar:/usr/share/netbeans/8.1/platform/lib/boot.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-modules.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util-lookup.jar:/usr/share/netbeans/8.1/platform/lib/org-openide-util-ui.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/dt.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Startup Classpath = /usr/share/netbeans/8.1/platform/core/org-openide-filesystems-compat8.jar:/usr/share/netbeans/8.1/platform/core/core-base.jar:/usr/share/netbeans/8.1/platform/core/asm-all-5.0.1.jar:/usr/share/netbeans/8.1/platform/core/core.jar:/usr/share/netbeans/8.1/platform/core/org-openide-filesystems.jar:/usr/share/netbeans/8.1/platform/core/org-netbeans-libs-asm.jar:/usr/share/netbeans/8.1/nb/core/org-netbeans-upgrader.jar:/usr/share/netbeans/8.1/nb/core/locale/core_nb.jar

java.lang.NoClassDefFoundError: org/eclipse/osgi/baseadaptor/HookConfigurator while loading org.netbeans.modules.netbinox.NetbinoxHooks; see http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound
at org.netbeans.ProxyClassLoader.selfLoadClass(Unknown Source)
at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.netbeans.modules.netbinox.NetbinoxFactory.newFramework(Unknown Source)
at org.netbeans.core.netigso.Netigso.prepare(Unknown Source)
at org.netbeans.NetigsoHandle.turnOn(Unknown Source)
at org.netbeans.ModuleManager.enable(Unknown Source)
INFO [null]: Last record repeated again.
at org.netbeans.core.startup.ModuleList.installNew(Unknown Source)
at org.netbeans.core.startup.ModuleList.trigger(Unknown Source)
at org.netbeans.core.startup.ModuleSystem.restore(Unknown Source)
at org.netbeans.core.startup.Main.getModuleSystem(Unknown Source)
INFO [null]: Last record repeated again.
at org.netbeans.core.startup.Main.start(Unknown Source)
at org.netbeans.core.startup.TopThreadGroup.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/osgi/baseadaptor/HookConfigurator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at org.netbeans.JarClassLoader.doLoadClass(Unknown Source)
... 16 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.osgi.baseadaptor.HookConfigurator starting from ModuleCL@459c3d83[org.netbeans.modules.netbinox] with possible defining loaders [ModuleCL@459c3d83[org.netbeans.modules.netbinox]] and declared parents [org.netbeans.MainImpl$BootClassLoader@41629346, ModuleCL@7636aab3[org.netbeans.core.netigso], ModuleCL@629a3076[org.netbeans.libs.osgi]]
at org.netbeans.ProxyClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 19 more






java netbeans






share|improve this question









New contributor




Dr.Lightning 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 question









New contributor




Dr.Lightning 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 question




share|improve this question








edited Nov 16 at 20:55









Zanna

48.9k13123234




48.9k13123234






New contributor




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









asked Nov 16 at 15:36









Dr.Lightning

11




11




New contributor




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





New contributor





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






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








  • 1




    I think you made a typo on your brand part, it should be 18.10, not 12.10. Am I correct?
    – Olimjon
    Nov 16 at 16:21












  • Corrected to 18.10. Any ideas on how to fix this?
    – Dr.Lightning
    Nov 16 at 19:27










  • This might help: askubuntu.com/a/1032096/816190 or this askubuntu.com/a/1049403/816190
    – Kulfy
    Nov 16 at 19:36












  • Possible duplicate of java problem with eclipse and netbeans
    – karel
    2 days ago






  • 1




    Possible duplicate of java problem with eclipse and netbeans
    – George Udosen
    17 hours ago














  • 1




    I think you made a typo on your brand part, it should be 18.10, not 12.10. Am I correct?
    – Olimjon
    Nov 16 at 16:21












  • Corrected to 18.10. Any ideas on how to fix this?
    – Dr.Lightning
    Nov 16 at 19:27










  • This might help: askubuntu.com/a/1032096/816190 or this askubuntu.com/a/1049403/816190
    – Kulfy
    Nov 16 at 19:36












  • Possible duplicate of java problem with eclipse and netbeans
    – karel
    2 days ago






  • 1




    Possible duplicate of java problem with eclipse and netbeans
    – George Udosen
    17 hours ago








1




1




I think you made a typo on your brand part, it should be 18.10, not 12.10. Am I correct?
– Olimjon
Nov 16 at 16:21






I think you made a typo on your brand part, it should be 18.10, not 12.10. Am I correct?
– Olimjon
Nov 16 at 16:21














Corrected to 18.10. Any ideas on how to fix this?
– Dr.Lightning
Nov 16 at 19:27




Corrected to 18.10. Any ideas on how to fix this?
– Dr.Lightning
Nov 16 at 19:27












This might help: askubuntu.com/a/1032096/816190 or this askubuntu.com/a/1049403/816190
– Kulfy
Nov 16 at 19:36






This might help: askubuntu.com/a/1032096/816190 or this askubuntu.com/a/1049403/816190
– Kulfy
Nov 16 at 19:36














Possible duplicate of java problem with eclipse and netbeans
– karel
2 days ago




Possible duplicate of java problem with eclipse and netbeans
– karel
2 days ago




1




1




Possible duplicate of java problem with eclipse and netbeans
– George Udosen
17 hours ago




Possible duplicate of java problem with eclipse and netbeans
– George Udosen
17 hours ago










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Sadly, Netbeans in official PPA does not start as expected on fresh Ubuntu 18.xx, because of Java dependecies.



So here is alternative solution:



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





















  • Let me know if anything goes wrong...
    – Olimjon
    Nov 17 at 9:52










  • Thanks. That got me further, Olimjon. Now netbeans runs but I can't create a new project. Specifically, If I do File / New Project, and then choose java / java Application, then the description at bottom mentions "This feature is not yet enabled. Press Next to activate it." When I press next, It does "Finding Feature" and says "Not all requested modules can be enabled." NOTE that the netbeans-8.2.linux.sh did NOT ask me about the Java location. This could be the reason. Note I'm trying askubuntu.com/questions/750514/… right now
    – Dr.Lightning
    2 days ago












  • The 750514 link above worked, so now I can add a new project.
    – Dr.Lightning
    2 days ago










  • @Dr.Lightning, OK. Glad that it worked.
    – Olimjon
    2 days ago











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',
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
});


}
});






Dr.Lightning is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093498%2fnetbeans-installed-via-apt-opens-but-then-closes-java-lang-noclassdeffounderro%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








up vote
0
down vote













Sadly, Netbeans in official PPA does not start as expected on fresh Ubuntu 18.xx, because of Java dependecies.



So here is alternative solution:



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





















  • Let me know if anything goes wrong...
    – Olimjon
    Nov 17 at 9:52










  • Thanks. That got me further, Olimjon. Now netbeans runs but I can't create a new project. Specifically, If I do File / New Project, and then choose java / java Application, then the description at bottom mentions "This feature is not yet enabled. Press Next to activate it." When I press next, It does "Finding Feature" and says "Not all requested modules can be enabled." NOTE that the netbeans-8.2.linux.sh did NOT ask me about the Java location. This could be the reason. Note I'm trying askubuntu.com/questions/750514/… right now
    – Dr.Lightning
    2 days ago












  • The 750514 link above worked, so now I can add a new project.
    – Dr.Lightning
    2 days ago










  • @Dr.Lightning, OK. Glad that it worked.
    – Olimjon
    2 days ago















up vote
0
down vote













Sadly, Netbeans in official PPA does not start as expected on fresh Ubuntu 18.xx, because of Java dependecies.



So here is alternative solution:



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





















  • Let me know if anything goes wrong...
    – Olimjon
    Nov 17 at 9:52










  • Thanks. That got me further, Olimjon. Now netbeans runs but I can't create a new project. Specifically, If I do File / New Project, and then choose java / java Application, then the description at bottom mentions "This feature is not yet enabled. Press Next to activate it." When I press next, It does "Finding Feature" and says "Not all requested modules can be enabled." NOTE that the netbeans-8.2.linux.sh did NOT ask me about the Java location. This could be the reason. Note I'm trying askubuntu.com/questions/750514/… right now
    – Dr.Lightning
    2 days ago












  • The 750514 link above worked, so now I can add a new project.
    – Dr.Lightning
    2 days ago










  • @Dr.Lightning, OK. Glad that it worked.
    – Olimjon
    2 days ago













up vote
0
down vote










up vote
0
down vote









Sadly, Netbeans in official PPA does not start as expected on fresh Ubuntu 18.xx, because of Java dependecies.



So here is alternative solution:



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












Sadly, Netbeans in official PPA does not start as expected on fresh Ubuntu 18.xx, because of Java dependecies.



So here is alternative solution:



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 at 9:51









Olimjon

2,025424




2,025424












  • Let me know if anything goes wrong...
    – Olimjon
    Nov 17 at 9:52










  • Thanks. That got me further, Olimjon. Now netbeans runs but I can't create a new project. Specifically, If I do File / New Project, and then choose java / java Application, then the description at bottom mentions "This feature is not yet enabled. Press Next to activate it." When I press next, It does "Finding Feature" and says "Not all requested modules can be enabled." NOTE that the netbeans-8.2.linux.sh did NOT ask me about the Java location. This could be the reason. Note I'm trying askubuntu.com/questions/750514/… right now
    – Dr.Lightning
    2 days ago












  • The 750514 link above worked, so now I can add a new project.
    – Dr.Lightning
    2 days ago










  • @Dr.Lightning, OK. Glad that it worked.
    – Olimjon
    2 days ago


















  • Let me know if anything goes wrong...
    – Olimjon
    Nov 17 at 9:52










  • Thanks. That got me further, Olimjon. Now netbeans runs but I can't create a new project. Specifically, If I do File / New Project, and then choose java / java Application, then the description at bottom mentions "This feature is not yet enabled. Press Next to activate it." When I press next, It does "Finding Feature" and says "Not all requested modules can be enabled." NOTE that the netbeans-8.2.linux.sh did NOT ask me about the Java location. This could be the reason. Note I'm trying askubuntu.com/questions/750514/… right now
    – Dr.Lightning
    2 days ago












  • The 750514 link above worked, so now I can add a new project.
    – Dr.Lightning
    2 days ago










  • @Dr.Lightning, OK. Glad that it worked.
    – Olimjon
    2 days ago
















Let me know if anything goes wrong...
– Olimjon
Nov 17 at 9:52




Let me know if anything goes wrong...
– Olimjon
Nov 17 at 9:52












Thanks. That got me further, Olimjon. Now netbeans runs but I can't create a new project. Specifically, If I do File / New Project, and then choose java / java Application, then the description at bottom mentions "This feature is not yet enabled. Press Next to activate it." When I press next, It does "Finding Feature" and says "Not all requested modules can be enabled." NOTE that the netbeans-8.2.linux.sh did NOT ask me about the Java location. This could be the reason. Note I'm trying askubuntu.com/questions/750514/… right now
– Dr.Lightning
2 days ago






Thanks. That got me further, Olimjon. Now netbeans runs but I can't create a new project. Specifically, If I do File / New Project, and then choose java / java Application, then the description at bottom mentions "This feature is not yet enabled. Press Next to activate it." When I press next, It does "Finding Feature" and says "Not all requested modules can be enabled." NOTE that the netbeans-8.2.linux.sh did NOT ask me about the Java location. This could be the reason. Note I'm trying askubuntu.com/questions/750514/… right now
– Dr.Lightning
2 days ago














The 750514 link above worked, so now I can add a new project.
– Dr.Lightning
2 days ago




The 750514 link above worked, so now I can add a new project.
– Dr.Lightning
2 days ago












@Dr.Lightning, OK. Glad that it worked.
– Olimjon
2 days ago




@Dr.Lightning, OK. Glad that it worked.
– Olimjon
2 days ago










Dr.Lightning is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Dr.Lightning is a new contributor. Be nice, and check out our Code of Conduct.













Dr.Lightning is a new contributor. Be nice, and check out our Code of Conduct.












Dr.Lightning is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093498%2fnetbeans-installed-via-apt-opens-but-then-closes-java-lang-noclassdeffounderro%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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei