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
459 stars 21 forks source link

Class not being found #125

Closed iiPythonx closed 3 years ago

iiPythonx commented 3 years ago

I'm not a java developer, although I'm having an issue trying to load a pretty simple jar file. No matter what class I pass into the cheerpjRunMain(), it always gives me the "Error: could not find or load class"

I checked that the server is working and sending the JAR file, which it is. Just to be sure, I checked what classes were inside of the jar file, via jar vf jarfile.jar, which gave me minicraft/core/Game.class (what I think the main class is).

I tried the full path ^, without the .class, just Game.class, and Game. None of which work.

Any ideas?

marsicplusplus commented 3 years ago

Hi @ii-Python,

You should use

cheerpjRunJar("/app/minicraft.jar");

To run the jar file. But minicraft won´t work in any case, as it seems to be using a custom socket implementation when the jar file is being loaded, not currently supported in CheerpJ.