thufir

Untitled

Mar 9th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. thufir@doge:~$
  2. thufir@doge:~$ tree IdeaProjects/
  3. IdeaProjects/
  4. ├── groovy
  5. │   ├── groovy.iml
  6. │   └── src
  7. │   └── hi.groovy
  8. └── java
  9. ├── java.iml
  10. └── src
  11. └── com
  12. └── company
  13. └── Main.java
  14.  
  15. 6 directories, 4 files
  16. thufir@doge:~$
  17. thufir@doge:~$
  18. thufir@doge:~$ cat IdeaProjects/groovy/src/hi.groovy
  19. class GroovyJMSExample {
  20. def sendMessage() {
  21. println "hello"
  22. }
  23.  
  24. static void main(String[] args) {
  25. sendMessage()
  26. }
  27. }
  28. thufir@doge:~$
  29. thufir@doge:~$ groovy IdeaProjects/groovy/src/hi.groovy
  30. Caught: groovy.lang.MissingMethodException: No signature of method: static GroovyJMSExample.sendMessage() is applicable for argument types: () values: []
  31. Possible solutions: sendMessage()
  32. groovy.lang.MissingMethodException: No signature of method: static GroovyJMSExample.sendMessage() is applicable for argument types: () values: []
  33. Possible solutions: sendMessage()
  34. at GroovyJMSExample.main(hi.groovy:7)
  35. thufir@doge:~$
Advertisement
Add Comment
Please, Sign In to add comment