Details
-
Bug
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
12.5
-
None
-
Windows 10
JDK 17
Description
Easy to replicate.
On a clean install of NB 12.5 using numerous JDK versions.
Install JDK
Install NB 12.5
Enable Groovy plugin
Create new project
Create 'demo' package space in project
Create new template groovy script in package.
- Fails to create file *
<?xml version="1.0" encoding="UTF-8"?><?xml version="1.0" encoding="UTF-8"?><!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd"><settings version="1.0"> <instance class="org.netbeans.modules.jshell.editor.ConsoleEditor"/></settings>ALL [null]: Class: class org.netbeans.modules.jshell.editor.ConsoleEditorALL [null]: Source: MultiFileObject@634c9c14[Windows2Local/Components/JShellEditor.settings]INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving dependencies took: 4 msINFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 31 binary roots took: 3,452 msINFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Temp\g4\test took: 2 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Temp\g4\src took: 215 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 2 source roots took: 217 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]SEVERE [global]java.lang.IllegalArgumentException: No folders selected at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:95) at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:74) at org.netbeans.spi.java.project.support.ui.templates.JavaTemplates.createPackageChooser(JavaTemplates.java:49) at org.netbeans.modules.groovy.support.wizard.AbstractFileWizard.createPanels(AbstractFileWizard.java:99) at org.netbeans.modules.groovy.support.wizard.AbstractFileWizard.initialize(AbstractFileWizard.java:71) at org.netbeans.modules.groovy.support.wizard.AbstractGroovyWizard.initialize(AbstractGroovyWizard.java:61)
If you click through the error if creates the template script. However, trying to run the file give this error;
ant -f C:\\Temp
g4 -Djavac.includes=demo/newGroovyScript.groovy -Drun.class=demo.newGroovyScript run-single
init:
Deleting: C:\Temp\g4\build\built-jar.properties
deps-jar:
Updating property file: C:\Temp\g4\build\built-jar.properties
compile-single:
run-single:
Error: Could not find or load main class demo.newGroovyScript
Caused by: java.lang.ClassNotFoundException: demo.newGroovyScript
C:\Temp\g4\nbproject\build-impl.xml:1341: The following error occurred while executing this line:
C:\Temp\g4\nbproject\build-impl.xml:936: Java returned: 1
BUILD FAILED (total time: 0 seconds)
Attachments
Attachments
Issue Links
- is duplicated by
-
NETBEANS-6141 Exception, when choosing new Groovy class
- Resolved
- links to