Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
11.2
-
None
-
Product Version: Apache NetBeans IDE 11.2-beta1
Java: 11.0.2; Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS
Runtime: Java(TM) SE Runtime Environment 11.0.2+9-LTS
System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
User directory: C:\Users\Chrl\AppData\Roaming\NetBeans\11.2-beta1
Cache directory: C:\Users\Chrl\AppData\Local\NetBeans\Cache\11.2-beta1Product Version: Apache NetBeans IDE 11.2-beta1 Java: 11.0.2; Java HotSpot(TM) 64-Bit Server VM 11.0.2+9-LTS Runtime: Java(TM) SE Runtime Environment 11.0.2+9-LTS System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb) User directory: C:\Users\Chrl\AppData\Roaming\NetBeans\11.2-beta1 Cache directory: C:\Users\Chrl\AppData\Local\NetBeans\Cache\11.2-beta1
Description
When I create a Java with Maven -> Java Frontend Application and try to run it as a NetBeans plugin, it doesn't work. It shows me, that some modules can't be enabled. This happens for a project type, that already exists in NetBeans w/o having a 3rd-party-plugin installed and a clean install (no user dir, no cache, nothing). Just downloaded 11.2 beta 1 and started it fresh.
As you can see, I'm running NetBeans 11.2 beta 1 on JDK 11.0.2 but I also have JDK 1.8 installed just for information.
Steps to reproduce:
- Create a new Project
- Choose "Java with Maven" -> "Java Frontend Application"
- Click on "Download & Activate" on the wizard for the project if needed.
- Wait for nbjavac and javafx downloaded and activate the missing features
- On wizard page "Name and Location" leave everything as it is and click next
- On next wizard page "Choose Platform" choose "Run as a NetBeans plugin" and click next
- On next wizard page "Select a template" leave everything as it is and click next
- On next wzard page "What will be created?" click finish
- Wait for everything is created and opened and you see the multi module project.
- Right click on your multi module project and click on properties
- * Go to sources make sure that you have chosen 1.8 at "Source/Binary Format"
- * Go to Build -> Compile and choose your Java platform, in my Case it is 11.0.2 that I added.
- * Go to Configurations and choose a target platform. I tried for ANB 10.0 and 11.1
- Open the submodule "YourProjectName Client for NetBeans"
- Try to run your submodule "YourProjectName Client for NetBeans" in your target platform
- When NetBeans started the modules, you got the message that not all modules can be enabled. See the screenshot for this.
Here is the output when I run the submodule
cd C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans; "JAVA_HOME=C:\\Program Files\\Java\\jdk-11.0.2" cmd /c "\"\"C:\\Users\\Chrl\\Downloads\\netbeans 11.2 beta 1\\java\\maven\\bin\\mvn.cmd\" -DskipTests=true -Dnetbeans.inspect.port=54481 -Dmaven.ext.class.path=\"C:\\Users\\Chrl\\Downloads\\netbeans 11.2 beta 1\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 -Pnetbeans-ide-10 package nbm:cluster nbm:run-platform\"" Scanning for projects... ------------------------------------------------------------------------ Building mavenproject4 Client for NetBeans 1.0-SNAPSHOT ------------------------------------------------------------------------ --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ mavenproject4-nb --- --- maven-dependency-plugin:2.9:unpack-dependencies (unpack) @ mavenproject4-nb --- Unpacking C:\Users\Chrl\.m2\repository\com\mycompany\mavenproject4\1.0-SNAPSHOT\mavenproject4-1.0-SNAPSHOT-webpages.zip to C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\classes\com\mycompany\mavenproject4 with includes "*/**" and excludes "" --- maven-compiler-plugin:3.3:compile (default-compile) @ mavenproject4-nb --- Nothing to compile - all classes are up to date --- image-maven-plugin:1.1:scale (default) @ mavenproject4-nb --- Output file C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\classes\com\mycompany\mavenproject4\icon.png skipped because it already exists Output file C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\classes\com\mycompany\mavenproject4\icon24.png skipped because it already exists --- html4j-maven-plugin:1.6.1:process-js-annotations (js-classes) @ mavenproject4-nb --- --- nbm-maven-plugin:3.14.1:manifest (default-manifest) @ mavenproject4-nb --- NBM Plugin generates manifest Adding OSGi bundle dependency - com.mycompany:mavenproject4 Adding OSGi bundle dependency - org.netbeans.html:net.java.html.boot Adding OSGi bundle dependency - com.mycompany:mavenproject4-js --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ mavenproject4-nb --- Using 'UTF-8' encoding to copy filtered resources. skip non existing resourceDirectory C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\src\test\resources --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ mavenproject4-nb --- No sources to compile --- maven-jar-plugin:2.4:jar (jar) @ mavenproject4-nb --- Adding existing MANIFEST to archive. Found under: C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\classes\META-INF\MANIFEST.MF Building jar: C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\mavenproject4-nb-1.0-SNAPSHOT.jar --- nbm-maven-plugin:3.14.1:cluster-app (default-cluster-app) @ mavenproject4-nb --- Could not resolve Class-Path item in org.netbeans.api:org-netbeans-libs-javafx:nbm-file:RELEASE110, path is:${java.home}/lib/ext/jfxrt.jar, skipping Could not resolve Class-Path item in org.netbeans.api:org-netbeans-libs-javafx:nbm-file:RELEASE110, path is:${java.home}/lib/ext/jfxrt.jar, skipping Integrity verification skipped. Created NetBeans module cluster(s) at C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\netbeans --- nbm-maven-plugin:3.14.1:standalone-zip (default-standalone-zip) @ mavenproject4-nb --- Building zip: C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\mavenproject4-nb-1.0-SNAPSHOT.zip --- nbm-maven-plugin:3.14.1:nbm (default-nbm) @ mavenproject4-nb --- Copying module JAR to C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\netbeans\extra\modules Generating Auto Update information for com.mycompany.mavenproject4.nb No updater.jar specified, cannot validate Info.xml against DTD Building jar: C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\mavenproject4-nb-1.0-SNAPSHOT.nbm ------------------------------------------------------------------------ Building mavenproject4 Client for NetBeans 1.0-SNAPSHOT ------------------------------------------------------------------------ --- nbm-maven-plugin:3.14.1:cluster (default-cli) @ mavenproject4-nb --- Created NetBeans module cluster(s) at C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target ------------------------------------------------------------------------ Building mavenproject4 Client for NetBeans 1.0-SNAPSHOT ------------------------------------------------------------------------ --- nbm-maven-plugin:3.14.1:run-platform (default-cli) @ mavenproject4-nb --- Executing: cmd.exe /X /C "C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\netbeans\bin\netbeans.exe --console suppress --userdir C:\Users\Chrl\Documents\NetBeansProjects\mavenproject4\mavenproject4\client-netbeans\target\userdir -J-Dnetbeans.logger.console=true -J-ea --branding netbeans --jdkhome "C:\Program Files\Java\jdk-11.0.2""
I didn't change any pom. I just created the project, built it and tried to run it.