QT-DevOps / AzureIssues

This repository is for questions
8 stars 27 forks source link

Groovy error #82

Closed mruttala closed 3 years ago

mruttala commented 4 years ago

hello, i installed groovy on my system and when i wrote the script and tried to run, im getting an error stating: java.lang.NoClassDefFoundError: Unable to load class org.apache.groovy.jaxb.extensions.JaxbExtensions due to missing dependency javax/xml/bind/JAXBContext

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)

where i went wrong???

srmanikanta commented 4 years ago

hi mruttala, please refer here

mruttala commented 4 years ago

NO, i it didn't resolved. actually in system environment variables, i gave GROOVY_HOME name and path as C:\tools\groovy-3.0.3\bin and when i tried to execute in power shell and im getting an error: 'findstr' is not recognized as an internal or external command, operable program or batch file. Error: Could not find or load main class org.codehaus.groovy.tools.GroovyStarter Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.tools.GroovyStarter

srmanikanta commented 4 years ago

hi mruttala, please set the path correctly or uninstall the grovy and reinstall again.

mruttala commented 4 years ago

I uninstalled and installed groovy installer , but still im getting an error as : "findstr is not recognised as internal or external command . "

srmanikanta commented 4 years ago

please call this number 7893532934.

NareshAbbanapuri commented 4 years ago

hi use chocolatey choco install groovy --force

mruttala2122 commented 4 years ago

done but still im getting the erroer while running the script." "findstr' is not recognized as an internal or external command, operable program or batch file." this is the error

mruttala commented 4 years ago

done but still im getting the erroer while running the script." "findstr' is not recognized as an internal or external command, operable program or batch file." this is the error