[
https://issues.apache.org/jira/browse/DIRGROOVY-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757659#action_12757659
]
Thomas Amsler commented on DIRGROOVY-6:
---------------------------------------
You are right. I made a stupid mistake. After renaming the file, it still gave
me the same error. I actually had to to create a class.
class LdapSearch {
public static void main(def args) {
....
}
}
Usually I don't need to do that when if I just want to try a simple script.
> Getting an error while running the LDAP search operation example
> ----------------------------------------------------------------
>
> Key: DIRGROOVY-6
> URL: https://issues.apache.org/jira/browse/DIRGROOVY-6
> Project: Directory Groovy LDAP
> Issue Type: Bug
> Environment: Groovy 1.6.4
> groovy-ldap.jar location: ~/.groovy/lib/groovy-ldap.jar
> Reporter: Thomas Amsler
> Assignee: Stefan Zoerner
>
> Sample Code:
> http://cwiki.apache.org/DIRxSBOX/2-groovy-ldap-user-guide.html#2.GroovyLDAPUserGuide-LDAPsearchoperation
> Error:
> groovy ldap-search.groovy
> Caught: java.lang.ClassFormatError: Illegal class name "ldap-search" in class
> file ldap-search
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.