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.
No description
No description
8 Replies
apignotti
apignotti4d ago
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 server
apignotti
apignotti4d ago
This 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
adc
adcOP4d ago
I changed the file structure but I'm still getting this error.
No description
No description
adc
adcOP4d ago
I'm using the Live Preview extension on VSCode for the local host
apignotti
apignotti4d ago
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 server
adc
adcOP4d ago
Yes, now its working thanks. I tried using NPX. On a seperate issue, my flatlaf look and theme isn't loading
apignotti
apignotti4d ago
L&F are fully supported, unless they depend on Windows or Mac specific code
adc
adcOP4d ago
Hmm, I'll look into it and open a separate thread if needed. Thanks for the help on this one. Greatly appreciate it!
Want results from more Discord servers?
Add your server