Error run_AMLSim.sh
I following the documentation step by step. However, I receive an error when doing the following part:
Build and launch AMLSim Please run the first script to compile Java files if you did not yet.
sh scripts/build_AMLSim.sh # Compile AMLSim Java files sh scripts/run_AMLSim.sh conf.json # Launch an AMLSim Java application
running the command sh scripts/build_AMLSim.sh results in:
C:\Path\to\AMLSim-master>sh scripts/build_AMLSim.sh
C:\Path\to\AMLSim-master>
I suppose this is correct?
Then when I can to run the command (sh scripts/run_AMLSim.sh conf.json) I get the following error:
C:\Path\to\AMLSim-master>sh scripts/run_AMLSim.sh conf.json Error: Could not find or load main class amlsim.AMLSim
Could you help me with this issue.
I cannot find what the problem is, thanks in advance
If you're compiling under Windows I found that replacing the class path in the last line of run_AMLSim.sh from -cp "jars/:bin" to -cp "jars/;bin (i.e. replacing the : with a ;) solved the problem
Thank you very much, the problem was indeed solved. However, I receive another message:
C:\Path\to\AMLSim-master>sh scripts/run_AMLSim.sh conf.json
Exception in thread "main" org.json.JSONException: JSONObject["sar_interval"] not found.
at org.json.JSONObject.get(JSONObject.java:573)
at org.json.JSONObject.getNumber(JSONObject.java:712)
at org.json.JSONObject.getInt(JSONObject.java:735)
at amlsim.SimProperties.
C:\Path\to\AMLSim-master>
What could be the problem here?
Thanks in advance
Full Command Prompt is:
Microsoft Windows [Version 10.0.17763.864] (c) 2018 Microsoft Corporation. All rights reserved.
C:\Path\to\AMLSim-master
C:\Path\to\AMLSim-master> python scripts/transaction_graph_generator.py conf.json Random seed: 0 Simulation name: sample Generated 10000 accounts. Add 99900 base transactions Exported 10000 accounts to tmp\sample\accounts.csv Exported 100632 transactions to tmp\sample\transactions.csv Output alert member list to: tmp\sample\alert_members.csv Exported 792 members for 100 AML typologies to tmp\sample\alert_members.csv
C:\Path\to\AMLSim-master> sh scripts/build_AMLSim.sh
C:\Path\to\AMLSim-master>sh scripts/run_AMLSim.sh conf.json
Exception in thread "main" org.json.JSONException: JSONObject["sar_interval"] not found.
at org.json.JSONObject.get(JSONObject.java:566)
at org.json.JSONObject.getInt(JSONObject.java:740)
at amlsim.SimProperties.
C:\Path\to\AMLSim-master>
Sorry for the late response.
The reason for this error is the parameter named "sar_interval" is missing in the configuration file conf.json, but this parameter is no longer necessary.
I tested the latest implementation with the configuration file above and passed it now.
One more thing, AMLSim does not currently support the Windows (macOS and Linux only). Sorry for the inconvenience.
I am follwing the documentation and on running the following command I am getting error. sh scripts/run_AMLSim.sh conf.json Error: scripts/run_AMLSim.sh: 3: [[: not found OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. Error: Could not find or load main class amlsim.AMLSim Caused by: java.lang.ClassNotFoundException: amlsim.AMLSim
I am on Linux machine. Please help with the issue.
I have the same issue as @prakharbhardwaj2412. Could you provide any help with this?
did you build the amlsim jar first?
try running
sh scripts/build_AMLSim.sh
after downloading all dependencies.
I'm having issues even finding all the dependencies.... have you guys found any solutions? @prakharbhardwaj2412 @Froony @FluxB