adding a file as a jar argument cheerpjRunJar

I have a jar file that asks for a config file as an argument as follows: example.jar --config /path/to/config.json It seems as if the applet cannot get access to this file. I have it in the same directory as the .jar file, and have tried adding the arg per cheerpj documentation: await cheerpjRunJar("/app/2009scape.jar", ["--config /app/config.json"]); am I missing something, or is adding external files a browser security issue that will not be easily solved?
2 Replies
apignotti
apignotti2mo ago
You are not using the correct syntax to pass arguments. Try the following.
cheerpjRunJar("/app/2009scape.jar", "--config", "/app/config.json")
cheerpjRunJar("/app/2009scape.jar", "--config", "/app/config.json")
parvob19
parvob19OP2mo ago
that worked, thank you!

Did you find this page helpful?