Why isn't the .jar file reading for the web test?

im a complete noob at this so tell me everything im doing wrong
7 Replies
apignotti
apignotti3d ago
Hi, please provide more information about what you are trying to achieve. I would strongly recommend following the tutorial step-by-step before attempting anything else: https://cheerpj.com/docs/getting-started/Java-app
Leaning Technologies Developer Hub
Run a Java application - CheerpJ Documentation
Convert a desktop app to a webapp
User
UserOP3d ago
this pops up in the terminal
No description
User
UserOP3d ago
this is the html file: <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>CheerpJ test</title> <script src="https://cjrtnc.leaningtech.com/4.0/loader.js"></script> </head> <body> <script> (async function () { await cheerpjInit(); cheerpjCreateDisplay(800, 600); await cheerpjRunJar("/app/minecraft.jar"); })(); </script> </body> </html>
apignotti
apignotti3d ago
The immediate problem is that minecraft.jar is not in the root of your web server. Please follow our tutorial first, it will help you understanding the basics.
apignotti
apignotti3d ago
Running minecraft is fairly complicated, see this repo for a complete setup: https://github.com/leaningtech/browsercraft/
GitHub
GitHub - leaningtech/browsercraft: Unmodified Minecraft 1.2.5 in th...
Unmodified Minecraft 1.2.5 in the browser using CheerpJ - leaningtech/browsercraft
apignotti
apignotti3d ago
I am marking this problem as solved, since it seem to be just a matter of basic configuration. For basic support please consider using the #cheerpj channel, where other members of the community may also help #support is only intended for bug reports or complex issues
User
UserOP3d ago
Much much thanks

Did you find this page helpful?