While working with NetBeans I have an error:
Not all requested modules can be enabled: [StandardModule:org.netbeans.modules.nbjavac jarFile: C:Users…AppDataRoamingNetBeans11.2modulesorg-netbeans-modules-nbjavac.jar]
I believe it’s connected to my problem with NetBeans hints for Java not being showed.
The file exists in C:Users...AppDataRoamingNetBeans11.2modulesorg-netbeans-modules-nbjavac.jar
.
It’s the only module noted as missed.
I am aware of popular problem will multiple modules noted as not possible to be enabled due to wrong JDK path. My path to JDK seems to be about right:
netbeans_jdkhome="D:Program FilesJavajdk1.8.0_231"
If I comment it out (as suggested in some solutions), than hints are working but project does not start because of multiple errors on TomEE (which works perfectly fine with the JDK uncommented):
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.openejb.loader.TomcatClassPath$3 (file:/D:/Programming/apache-tomee-webprofile-7.0.2/lib/openejb-loader-7.0.2.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.apache.openejb.loader.TomcatClassPath$3
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
06-Jan-2020 06:24:23.213 INFO [main] org.apache.openejb.util.OptionsLog.info Using ‘openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator’
06-Jan-2020 06:24:23.230 SEVERE [main] jdk.internal.reflect.NativeMethodAccessorImpl.invoke Catalina.start
org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)06-Jan-2020 06:24:23.231 WARNING [main] jdk.internal.reflect.NativeMethodAccessorImpl.invoke Calling stop() on failed component [StandardServer[8005]] to trigger clean-up did not complete.
org.apache.catalina.LifecycleException: Failed to stop component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:238)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:264)
at org.apache.catalina.startup.Catalina.start(Catalina.java:659)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
Caused by: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [StandardService[Catalina]] in state [INITIALIZED]
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:213)
at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:812)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
… 8 more
Is there a way to use my JDK and use hints?
It means the netbeans.conf file (located in two places) was not set up correctly.To solve this you might do:
First: open TERMINAL go to /etc
cd /etc
Second: open netbeans.conf file as superuser (sudo):
sudo gedit netbeans.conf
Third: Edit the line wich corresponds to your JVM (Java Virtual Machine) folder. It looks like #netbeans_jdkhome=»/usr/lib/jvm/java-8-openjdk-amd64/».
Change the local according to your JVM version.
To find out what JVM version you use, go to the JVM folder by typing in terminal:
cd /usr/lib/jvm
and see what name is folder that contains JVM. For example, mine is named java-8-opendjdk-amd64
Fourth: let’s edit the second netbeans.conf file located at your Netbeans installation folder. Open a TERMINAL and type (here I’ll use Netbeans 8.2 version):
cd /netbeans-8.2/etc
And open netbeans.conf file in editor as a superuse (sudo):
sudo gedit netbeans.conf
Last step: Edit the line wich corresponds to your JVM (Java Virtual Machine) folder. It looks like #netbeans_jdkhome=»/usr/lib/jvm/java-8-openjdk-amd64/».
Don’t forget to uncomment the line by removing the # character.
Now save the file, close Netbeans and run it again!
IT WORKS !
I am having problem in running a file in netbeans. I have been using netbeans 7.3 to run PHP code till today and so far it used to work perfectly. Suddenly, today when I first time tried to open a php file it simply did not open anything, neither showed any error. I tried reinstalling, but again no change. I noticed that if I try to create a new project then it shows me this message This feature is not yet enabled. Press Next to activate it
. And I clicked next and it shows Not all requested modules can be enabled
…and a very long message.
I again uninstalled. removed caches and library for netbeans. Installed again and on first opening it showed me this warning
Warning - could not install some modules: org.apache.commons.logging - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-apache-commons-logging.jar: Not found bundle:org.apache.commons.logging org.apache.ws.commons.util - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-apache-ws-commons-util.jar: Not found bundle:org.apache.ws.commons.util org.apache.commons.io - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-apache-commons-io.jar: Not found bundle:org.apache.commons.io org.apache.commons.codec - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-apache-commons-codec.jar: Not found bundle:org.apache.commons.codec org.apache.commons.httpclient - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-apache-commons-httpclient.jar: Not found bundle:org.apache.commons.httpclient org.apache.xmlrpc - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-apache-xmlrpc.jar: Not found bundle:org.apache.xmlrpc org.eclipse.equinox.common - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-equinox-common.jar: Not found bundle:org.eclipse.equinox.common org.eclipse.core.jobs - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-core-jobs.jar: Not found bundle:org.eclipse.core.jobs org.eclipse.equinox.registry - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-equinox-registry.jar: Not found bundle:org.eclipse.equinox.registry org.eclipse.equinox.app - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-equinox-app.jar: Not found bundle:org.eclipse.equinox.app org.eclipse.equinox.preferences - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-equinox-preferences.jar: Not found bundle:org.eclipse.equinox.preferences org.eclipse.core.contenttype - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-core-contenttype.jar: Not found bundle:org.eclipse.core.contenttype org.eclipse.core.runtime.compatibility.auth - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-core-runtime-compatibility-auth.jar: Not found bundle:org.eclipse.core.runtime.compatibility.auth org.eclipse.core.runtime - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-core-runtime.jar: Not found bundle:org.eclipse.core.runtime org.eclipse.equinox.security - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-equinox-security.jar: Not found bundle:org.eclipse.equinox.security org.eclipse.core.net - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-core-net.jar: Not found bundle:org.eclipse.core.net org.eclipse.mylyn.commons.core - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-mylyn-commons-core.jar: Not found bundle:org.eclipse.mylyn.commons.core org.eclipse.mylyn.commons.repositories.core - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-mylyn-commons-repositories-core.jar: Not found bundle:org.eclipse.mylyn.commons.repositories.core org.apache.commons.lang - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-apache-commons-lang.jar: Not found bundle:org.apache.commons.lang org.eclipse.mylyn.commons.net - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-mylyn-commons-net.jar: Not found bundle:org.eclipse.mylyn.commons.net org.eclipse.mylyn.commons.xmlrpc - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-mylyn-commons-xmlrpc.jar: Not found bundle:org.eclipse.mylyn.commons.xmlrpc org.eclipse.mylyn.tasks.core - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-mylyn-tasks-core.jar: Not found bundle:org.eclipse.mylyn.tasks.core org.eclipse.mylyn.bugzilla.core - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-mylyn-bugzilla-core.jar: Not found bundle:org.eclipse.mylyn.bugzilla.core com.jcraft.jzlib - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/com-jcraft-jzlib.jar: Not found bundle:com.jcraft.jzlib com.jcraft.jsch - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/com-jcraft-jsch.jar: Not found bundle:com.jcraft.jsch org.eclipse.jgit - org.netbeans.InvalidException: Netigso: /Applications/NetBeans/NetBeans 7.3.app/Contents/Resources/NetBeans/ide/modules/org-eclipse-jgit.jar: Not found bundle:org.eclipse.jgit
.
I spent almost a day on this. I am using netbeans 7.3. Thank you in advance.
asked Apr 9, 2013 at 11:15
Open the netbeans.conf file and comment out the netbeans_jdkhome=»/usr» line.
It worked on my Linux system.
answered Feb 13, 2017 at 23:25
EmilEmil
511 silver badge3 bronze badges
1
I had this problem today. Solution is very simply: reinstall NetBeans and when installation manager will ask JDK path, set path to one of your JDK (use selector in menu). Default path «/usr/» or other which IDE set automatically is not actual and after installation you’ll cann’t change default path!
answered Jan 14, 2016 at 16:49
Vika MarquezVika Marquez
3531 gold badge3 silver badges12 bronze badges
Solution 1
I solved the exact same problem by reinstalling the nb-javac plugin (2.0) in my NetBeans (11.3)
- Open NetBeans
- Go to Tools > Plugins > Installed
- Enable checkbox «Show details»
- Search for javac to find the line «The nb-javac Java editing support library»
- Select and uninstall
- Restart NetBeans
- NetBeans will recommend installing nb-javac in an info box. Just click on the link and follow instructions
UPDATE for NetBeans 12.1 & NetBeans 12.2
This solves the error message «Cannot enable the nb-javac plugin»
Solution 2
In my case, the error occurred when I was trying to install Hibernate library and activating it in NetBeans, what I did was:
-
Go to: http://plugins.netbeans.org/plugin/73454/nb-javac-library and download the plugin corresponding to your NetBeans version
-
Unzip the archive then go to NetBeans: Tools -> Plugins -> Downloaded (Tab) -> Add plugins then select the .nbm files you’ve just unzipped
-
Uninstall the plugin you were trying to install, restart NetBeans then reinstall the plugin you’re trying to install
Solution 3
so i solved same issue by first going to C:Users...AppDataRoamingNetBeans11.2modules
folder and deleted org-netbeans-modules-nbjavac.jar
.
After, I restarted Netbeans IDE. Go to:
Windows -> IDE Tools -> Notifications
to open the Notification Window and click the «It is recommended to install nb-javac Library to improve Java editing experience and enable compile on save» to reinstall the nb-javac
library.
Restarted after and worked for me.
Comments
-
While working with NetBeans I have an error:
Not all requested modules can be enabled: [StandardModule:org.netbeans.modules.nbjavac jarFile: C:Users…AppDataRoamingNetBeans11.2modulesorg-netbeans-modules-nbjavac.jar]
I believe it’s connected to my problem with NetBeans hints for Java not being showed.
The file exists in
C:Users...AppDataRoamingNetBeans11.2modulesorg-netbeans-modules-nbjavac.jar
.It’s the only module noted as missed.
I am aware of popular problem will multiple modules noted as not possible to be enabled due to wrong JDK path. My path to JDK seems to be about right:
netbeans_jdkhome="D:Program FilesJavajdk1.8.0_231"
If I comment it out (as suggested in some solutions), than hints are working but project does not start because of multiple errors on TomEE (which works perfectly fine with the JDK uncommented):
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.openejb.loader.TomcatClassPath$3 (file:/D:/Programming/apache-tomee-webprofile-7.0.2/lib/openejb-loader-7.0.2.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.apache.openejb.loader.TomcatClassPath$3
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
06-Jan-2020 06:24:23.213 INFO [main] org.apache.openejb.util.OptionsLog.info Using ‘openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator’
06-Jan-2020 06:24:23.230 SEVERE [main] jdk.internal.reflect.NativeMethodAccessorImpl.invoke Catalina.start
org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)06-Jan-2020 06:24:23.231 WARNING [main] jdk.internal.reflect.NativeMethodAccessorImpl.invoke Calling stop() on failed component [StandardServer[8005]] to trigger clean-up did not complete.
org.apache.catalina.LifecycleException: Failed to stop component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:238)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:264)
at org.apache.catalina.startup.Catalina.start(Catalina.java:659)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:355)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495)
Caused by: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [StandardService[Catalina]] in state [INITIALIZED]
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:213)
at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:812)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:226)
… 8 moreIs there a way to use my JDK and use hints?
-
[1] Is the
nbjavac
plugin definitely activated? To check, go to Tools > Plugins > Installed, search fornbjavac
, and then verify that the Active column for the displayed entry for «The nb-javac Java editing support library» (under the Java Category) shows a green circle with a white check mark. [2] If it not activated then try to activate it. [3] Finally, restart NetBeans, and then update your question to show the content of the NetBeans log (View > IDE Log) immediately after the restart.
-
-
If you’re on 11.1 like me, you will find that the above link does not have a version for NB11.1. Downloading and installing the version for 11.2 will work. Thanks Mehdi Fracsco
-
@dBlaze my pleasure, I am also on version 11.2 but as I can see, netbeans isn’t producing new plugins versions for the new IDE versions, like I was trying to download Struts plugin for netbeans 11.2, all the plugins that I found were meant for earlier versions ( <= V7), still that plugin for 7th version worked on my 11th version.
-
this one worked for me on apache 12.0 , though it didnt ask me to reinstall the plugin, i had to do it manually, but thanks
-
This worked for me on 12.2, and I had to install manually. But this time it say v2.0 for the plugin instead of v1.0 the first time it installed.
-
Why didn’t that plugin installed earlier automatically (solved) when first time user install the Netbean itself ? Does it big or something?
Recents
Related
Symptoms:
- In Netbeans 8.2, the message “message “not all requested modules can be enabled” is displayed on start up
- In newer versions, the java lang package is not found
Both symptoms mean that Netbeans has not been configured to use the proper JDK.
To find the path of the installed JDKs you can type:
$ update-java-alternatives -l
A sample output would be:
java-7-oracle 1078 /usr/lib/jvm/java-7-oracle java-8-oracle 1081 /usr/lib/jvm/java-8-oracle
What you have to do is locate the file netbeans.conf and set the netbeans_jdkhome variable to one of the paths displayed above.
The easiest way to find netbeans.conf is to run the following command:
find / -name netbeans.conf 2> /dev/null
This may take a while since it will search the whole disk.
You could also look at the following standard directories:
- /home/netbeans-X.Y/etc/netbeans.conf
- /usr/local/netbeans-X.Y/etc/netbeans.conf
After you have found netbeans.conf, you perform the following steps:
- open netbeans.conf with any text editor you like
- set netbeans_jdkhome variable to point to the proper location, eg:
netbeans_jdkhome="/usr/lib/jvm/java-8-oracle"
References:
https://askubuntu.com/questions/750514/netbeans-not-all-requested-modules-can-be-enabled