AMLSim icon indicating copy to clipboard operation
AMLSim copied to clipboard

Error run_AMLSim.sh

Open florisviss opened this issue 6 years ago • 8 comments

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

florisviss avatar Dec 03 '19 15:12 florisviss

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

davidxn11 avatar Dec 03 '19 20:12 davidxn11

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.(SimProperties.java:41) at amlsim.AMLSim.main(AMLSim.java:486)

C:\Path\to\AMLSim-master>

What could be the problem here?

Thanks in advance

florisviss avatar Dec 04 '19 09:12 florisviss

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.(SimProperties.java:41) at amlsim.AMLSim.main(AMLSim.java:486)

C:\Path\to\AMLSim-master>

florisviss avatar Dec 04 '19 12:12 florisviss

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.

hkanezashi avatar Feb 25 '20 07:02 hkanezashi

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.

prakharbhardwaj2412 avatar Feb 28 '21 03:02 prakharbhardwaj2412

I have the same issue as @prakharbhardwaj2412. Could you provide any help with this?

Froony avatar Jun 01 '21 19:06 Froony

did you build the amlsim jar first? try running sh scripts/build_AMLSim.sh after downloading all dependencies.

FluxB avatar Jul 01 '21 13:07 FluxB

I'm having issues even finding all the dependencies.... have you guys found any solutions? @prakharbhardwaj2412 @Froony @FluxB

HanSeoulOh avatar Sep 29 '21 23:09 HanSeoulOh