[jira] [Updated] (NETBEANS-3185) Java frontend application doesn't work
[ https://issues.apache.org/jira/browse/NETBEANS-3185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] ASF GitHub Bot updated NETBEANS-3185: - Labels: pull-request-available (was: ) > Java frontend application doesn't work > -- > > Key: NETBEANS-3185 > URL: https://issues.apache.org/jira/browse/NETBEANS-3185 > Project: NetBeans > Issue Type: Bug > Components: javafx - Project, platform - HTML4J >Affects Versions: 11.2 > Environment: 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-beta1 >Reporter: Christian Lenz >Assignee: Eric Barboni >Priority: Major > Labels: pull-request-available > Attachments: netbeans-java-frontend.png > > > 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 > {code} > 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) @
[jira] [Updated] (NETBEANS-3185) Java frontend application doesn't work
[ https://issues.apache.org/jira/browse/NETBEANS-3185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Lenz updated NETBEANS-3185: - 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 {code} 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
[jira] [Updated] (NETBEANS-3185) Java frontend application doesn't work
[ https://issues.apache.org/jira/browse/NETBEANS-3185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christian Lenz updated NETBEANS-3185: - 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 and I build the project with JDK 1.8 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 -> properties and go to sources * Make sure that you have chosen 1.8 at "Source/Binary Format" (This is my environment, because I have installed JDK 1.8 to build my plugins for the minimal version as possible) * Build your project for your 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 {code} 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-