Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error run_AMLSim.sh #30

Open
florisviss opened this issue Dec 3, 2019 · 8 comments
Open

Error run_AMLSim.sh #30

florisviss opened this issue Dec 3, 2019 · 8 comments

Comments

@florisviss
Copy link

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

@davidxn11
Copy link

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

@florisviss
Copy link
Author

florisviss commented Dec 4, 2019

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
Copy link
Author

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>

hkanezashi added a commit that referenced this issue Feb 3, 2020
hkanezashi added a commit that referenced this issue Feb 4, 2020
@hkanezashi
Copy link
Collaborator

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.

@prakharbhardwaj2412
Copy link

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.

@frankbarten
Copy link

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

@FluxB
Copy link

FluxB commented Jul 1, 2021

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

@HanSeoulOh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants