(Re)Bonjour,
Je cherche à lancer un projet Graphab en lignes de commande.
J'ai réussi à créer un projet, un habitat et un jeux de liens mais je ne parviens pas à créer de graphe.
J'utilise la commande suivante : java --enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow -jar graphab-3.0.5.jar --project "C:\Users\adnes\Documents\ZOE\QGIS\0_tests\4_bis_test_arcueil_automatisation\TAMO_Arcueil\TAMO_Arcueil.xml" --graph name=TAMO_complet_LiensProbables_max4000m threshold={4000}
Le résultat est le suivant :
Chargement du projet... : 0,0%oct. 29, 2025 10:31:45 AM org.hsqldb.persist.Logger logInfoEvent
INFOS: dataFileCache open start
Exception in thread "main" java.lang.IllegalArgumentException: Paramètres inconnus : [NAAwADAAMAA, -inputFormat, -encodedCommand, xml, -outputFormat, text]
at org.thema.graphab.CLITools.extractAndCheckParams(CLITools.java:1966)
at org.thema.graphab.CLITools.createGraph(CLITools.java:860)
at org.thema.graphab.CLITools.execute(CLITools.java:261)
at org.thema.graphab.MainFrame.main(MainFrame.java:1202)
Savez-vous comment puis-je rectifier ça ?
(J'ai ajouté les commandes --enable et --sun car j'avais les messages d'erreur suivants :
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.thoughtworks.xstream.converters.reflection.SunUnsafeReflectionProvider (file:/C:/Users/adnes/Documents/ZOE/graphab-3.0.5.jar)
WARNING: Please consider reporting this to the maintainers of class com.thoughtworks.xstream.converters.reflection.SunUnsafeReflectionProvider
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
Chargement du projet... : 0,0%WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.sqlite.SQLiteJDBCLoader in an unnamed module (file:/C:/Users/adnes/Documents/ZOE/graphab-3.0.5.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Bien cordialement