Outils pour utilisateurs

Outils du site


tech:langage_groovy

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:langage_groovy [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:langage_groovy [2025/11/11 20:57] (Version actuelle) Jean-Baptiste
Ligne 5: Ligne 5:
 Voir aussi : Voir aussi :
  * https://developers.redhat.com/articles/2023/07/06/how-use-debezium-smt-groovy-filter-routing-events  * https://developers.redhat.com/articles/2023/07/06/how-use-debezium-smt-groovy-filter-routing-events
 +
  
 == Hello world == Hello world
Ligne 17: Ligne 18:
 println "Hello World !" println "Hello World !"
 </code> </code>
 +
 +
 == Importer une class == Importer une class
  
Ligne 32: Ligne 35:
 == Fichier java .class == Fichier java .class
  
- +''test.groovy'' 
-<code groovy test.groovy>+<code groovy>
 #! /usr/bin/env groovy #! /usr/bin/env groovy
  
Ligne 87: Ligne 90:
 WARNING: All illegal access operations will be denied in a future release WARNING: All illegal access operations will be denied in a future release
 </code> </code>
 +
  
 === Pb Error: Could not find or load main class test === Pb Error: Could not find or load main class test
Ligne 95: Ligne 99:
 Caused by: java.lang.NoClassDefFoundError: groovy/lang/Script Caused by: java.lang.NoClassDefFoundError: groovy/lang/Script
 </code> </code>
 +
  
 ==== Solution ==== Solution
Ligne 101: Ligne 106:
 java -cp /usr/share/groovy/lib/groovy-2.4.21.jar:$PWD test java -cp /usr/share/groovy/lib/groovy-2.4.21.jar:$PWD test
 </code> </code>
 +
  
 === Pb Error: Main method not found in class xxx === Pb Error: Main method not found in class xxx
Ligne 115: Ligne 121:
 Voir : https://www.yawintutor.com/main-method-not-found-javafx-application-class/ Voir : https://www.yawintutor.com/main-method-not-found-javafx-application-class/
  
-<code groovy test.groovy>+''test.groovy'' 
 +<code groovy>
 #! /usr/bin/env groovy #! /usr/bin/env groovy
  
tech/langage_groovy.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki