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
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
this pops up in the terminal

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>
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.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
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
Much much thanks