leaningtech / cheerpj-meta

Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.
https://labs.leaningtech.com/cheerpj
445 stars 21 forks source link

How can I control the File systems? #131

Closed uoau closed 2 years ago

uoau commented 2 years ago

Such as, I have a jar, I use it like this in linux,

java -jar plantuml.jar ./test.txt

I use it use cheerpj.

<script>
cheerpjInit();
cheerpjRunJar("plantuml/plantuml.jar", './test.txt');
</script>

But I can read the file, How can I let cheerpjRunJa deal the test.txt file ?

marsicplusplus commented 2 years ago

Hi @uoau.

To read more about the virtual file system that CheerpJ implements you can take a look at the wiki: https://github.com/leaningtech/cheerpj-meta/wiki/File-System-support

In general you will need to read the file that you have in the root of your webserver from the /app/ folder.