I keep getting these errors when trying to run my Java app
I have compiled my Java code (including the dependencies) into a Jar file, which runs smoothly. However, when I try to use CheerpJ, I keep these errors.


8 Replies
Hello, the problem is quite clear, your jar in under the
/app
directory of your web server
But the CheerpJ filesystem is virtualized, the /app
directory inside CheerpJ corresponds to the root of the HTTP serverThis is a common problem and it's well explained in our docs, see here for more info: https://cheerpj.com/docs/guides/File-System-support#app-mount-point
Leaning Technologies Developer Hub
Files and filesystems - CheerpJ Documentation
Virtual filesystems and how to use them
I changed the file structure but I'm still getting this error.


I'm using the Live Preview extension on VSCode for the local host
Now it's the path you are giving to CheerpJ that is not correct
It should be
/app/RoboticArm.jar
again, the filesystem is virtualized and /app
-> /
on the HTTP serverYes, now its working thanks. I tried using NPX.
On a seperate issue, my flatlaf look and theme isn't loading
L&F are fully supported, unless they depend on Windows or Mac specific code
Hmm, I'll look into it and open a separate thread if needed. Thanks for the help on this one. Greatly appreciate it!