[jira] [Commented] (NETBEANS-4124) Error running forked groovyc
[ https://issues.apache.org/jira/browse/NETBEANS-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084771#comment-17084771 ] Michal Lorenc commented on NETBEANS-4124: - Thank you, I renamed it to Main.groovy and it works now. > Error running forked groovyc > > > Key: NETBEANS-4124 > URL: https://issues.apache.org/jira/browse/NETBEANS-4124 > Project: NetBeans > Issue Type: Bug > Components: groovy - Code, groovy - Editor, groovy - Grails >Affects Versions: 11.3 >Reporter: Michal Lorenc >Assignee: Laszlo Kishalmi >Priority: Major > > I installed Netbeans 11.3, OpenJDK-13 under Ubuntu 18.04 and created in the > following a new Groovy project. > 1. Choose File > New Project (Ctrl-Shift-N;\u2318-Shift-N on Mac) from the > main menu to open the New Project wizard. > 2. Select Java Application in the Java category. Click Next. > 3. Type GroovyJavaDemo as the Project Name and specify the folder where you > want to create the application in the Project Location field. > > 4. Deselect the Create Main Class checkbox. Click Finish. > 5. Next, I created a Groovy Script file with only this content println > "Hello" and it caused the following problems: > {code:java} >ant -f /home/ubuntu/NetBeansProjects/GroovyJavaDemo > -Djavac.includes=Hello.groovy -Drun.class=Hello run-single > init: > deps-jar: > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build > Updating property file: > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/built-jar.properties > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/classes > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/empty > Compiling 1 source file to > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/classes > > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/nbproject/build-impl.xml:1120: > The following error occurred while executing this line: > > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/nbproject/groovy-build.xml:26: > Error running forked groovyc. > BUILD FAILED (total time: 1 second) > {code} > [Gradle developer|https://github.com/gradle/gradle/issues/12700] states it > has nothing to with its project. > Why does it works only with OpenJDk-8 and not with OpenJDK-13? > Thank you in advance, -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4124) Error running forked groovyc
[ https://issues.apache.org/jira/browse/NETBEANS-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084453#comment-17084453 ] Laszlo Kishalmi commented on NETBEANS-4124: --- When you created the Groovy file you added Hello.groovy, if you check, you/ve created a Hello/groovy.groovy file also the main class name in the Gradle might be not exist. Ti would be better to share your project as a zip or upload it to github the later preferred, as I can for it and make it work with a PR. > Error running forked groovyc > > > Key: NETBEANS-4124 > URL: https://issues.apache.org/jira/browse/NETBEANS-4124 > Project: NetBeans > Issue Type: Bug > Components: groovy - Code, groovy - Editor, groovy - Grails >Affects Versions: 11.3 >Reporter: Michal Lorenc >Assignee: Laszlo Kishalmi >Priority: Major > > I installed Netbeans 11.3, OpenJDK-13 under Ubuntu 18.04 and created in the > following a new Groovy project. > 1. Choose File > New Project (Ctrl-Shift-N;\u2318-Shift-N on Mac) from the > main menu to open the New Project wizard. > 2. Select Java Application in the Java category. Click Next. > 3. Type GroovyJavaDemo as the Project Name and specify the folder where you > want to create the application in the Project Location field. > > 4. Deselect the Create Main Class checkbox. Click Finish. > 5. Next, I created a Groovy Script file with only this content println > "Hello" and it caused the following problems: > {code:java} >ant -f /home/ubuntu/NetBeansProjects/GroovyJavaDemo > -Djavac.includes=Hello.groovy -Drun.class=Hello run-single > init: > deps-jar: > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build > Updating property file: > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/built-jar.properties > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/classes > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/empty > Compiling 1 source file to > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/classes > > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/nbproject/build-impl.xml:1120: > The following error occurred while executing this line: > > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/nbproject/groovy-build.xml:26: > Error running forked groovyc. > BUILD FAILED (total time: 1 second) > {code} > [Gradle developer|https://github.com/gradle/gradle/issues/12700] states it > has nothing to with its project. > Why does it works only with OpenJDk-8 and not with OpenJDK-13? > Thank you in advance, -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4124) Error running forked groovyc
[ https://issues.apache.org/jira/browse/NETBEANS-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17084328#comment-17084328 ] Michal Lorenc commented on NETBEANS-4124: - Thank you, it worked to build it does not show the out put of the println statement {code:java} JAVA_HOME="/usr/lib/jvm/java-13-openjdk-amd64" cd /home/ubuntu/NetBeansProjects/GroovyTest2; /home/ubuntu/.gradle/wrapper/dists/gradle-6.0-bin/8ccdmgaih4za71r0tlxhaz33m/gradle-6.0/bin/gradle --configure-on-demand -x check run Configuration on demand is an incubating feature. > Task :compileJava NO-SOURCE > Task :compileGroovy UP-TO-DATE > Task :processResources NO-SOURCE > Task :classes UP-TO-DATE > Task :run BUILD SUCCESSFUL in 5s 2 actionable tasks: 1 executed, 1 up-to-date {code} I've done it in the following [way|https://imgur.com/a/OboLeLR]. What did I miss? Thank you in advance > Error running forked groovyc > > > Key: NETBEANS-4124 > URL: https://issues.apache.org/jira/browse/NETBEANS-4124 > Project: NetBeans > Issue Type: Bug > Components: groovy - Code, groovy - Editor, groovy - Grails >Affects Versions: 11.3 >Reporter: Michal Lorenc >Assignee: Laszlo Kishalmi >Priority: Major > > I installed Netbeans 11.3, OpenJDK-13 under Ubuntu 18.04 and created in the > following a new Groovy project. > 1. Choose File > New Project (Ctrl-Shift-N;\u2318-Shift-N on Mac) from the > main menu to open the New Project wizard. > 2. Select Java Application in the Java category. Click Next. > 3. Type GroovyJavaDemo as the Project Name and specify the folder where you > want to create the application in the Project Location field. > > 4. Deselect the Create Main Class checkbox. Click Finish. > 5. Next, I created a Groovy Script file with only this content println > "Hello" and it caused the following problems: > {code:java} >ant -f /home/ubuntu/NetBeansProjects/GroovyJavaDemo > -Djavac.includes=Hello.groovy -Drun.class=Hello run-single > init: > deps-jar: > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build > Updating property file: > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/built-jar.properties > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/classes > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/empty > Compiling 1 source file to > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/classes > > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/nbproject/build-impl.xml:1120: > The following error occurred while executing this line: > > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/nbproject/groovy-build.xml:26: > Error running forked groovyc. > BUILD FAILED (total time: 1 second) > {code} > [Gradle developer|https://github.com/gradle/gradle/issues/12700] states it > has nothing to with its project. > Why does it works only with OpenJDk-8 and not with OpenJDK-13? > Thank you in advance, -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4124) Error running forked groovyc
[ https://issues.apache.org/jira/browse/NETBEANS-4124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17076947#comment-17076947 ] Laszlo Kishalmi commented on NETBEANS-4124: --- Something could be pretty mixed up in your setup. NetBeans 11.3 has no Java Application Category, nor real Groovy project support. Instead of trying to fix your case, I can describe how to create a working Groovy project with NetBeans. Create a new project Select Java Application from the Java with Gradle Category. After that open the build.gradle and replace the apply plugin: 'java' with apply plugin: 'groovy' and add the following as well: {{dependencies {implementation 'org.codehaus.groovy:groovy-all:2.4.15'}}} Open the file view and rename the src/main/java folder to src/main/groovy More information: https://docs.gradle.org/current/userguide/groovy_plugin.html > Error running forked groovyc > > > Key: NETBEANS-4124 > URL: https://issues.apache.org/jira/browse/NETBEANS-4124 > Project: NetBeans > Issue Type: Bug > Components: groovy - Code, groovy - Editor, groovy - Grails >Affects Versions: 11.3 >Reporter: Michal Lorenc >Assignee: Laszlo Kishalmi >Priority: Major > > I installed Netbeans 11.3, OpenJDK-13 under Ubuntu 18.04 and created in the > following a new Groovy project. > 1. Choose File > New Project (Ctrl-Shift-N;\u2318-Shift-N on Mac) from the > main menu to open the New Project wizard. > 2. Select Java Application in the Java category. Click Next. > 3. Type GroovyJavaDemo as the Project Name and specify the folder where you > want to create the application in the Project Location field. > > 4. Deselect the Create Main Class checkbox. Click Finish. > 5. Next, I created a Groovy Script file with only this content println > "Hello" and it caused the following problems: > {code:java} >ant -f /home/ubuntu/NetBeansProjects/GroovyJavaDemo > -Djavac.includes=Hello.groovy -Drun.class=Hello run-single > init: > deps-jar: > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build > Updating property file: > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/built-jar.properties > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/classes > Created dir: /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/empty > Compiling 1 source file to > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/build/classes > > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/nbproject/build-impl.xml:1120: > The following error occurred while executing this line: > > /home/ubuntu/NetBeansProjects/GroovyJavaDemo/nbproject/groovy-build.xml:26: > Error running forked groovyc. > BUILD FAILED (total time: 1 second) > {code} > [Gradle developer|https://github.com/gradle/gradle/issues/12700] states it > has nothing to with its project. > Why does it works only with OpenJDk-8 and not with OpenJDK-13? > Thank you in advance, -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists