Frequently Asked Questions
What is CheerpJ?
What parts of the Java SE runtime are supported?
Can I self-host the CheerpJ runtime?
Please contact us to discuss self-hosting CheerpJ and its runtime on your infrastructure.
Can I use CheerpJ to run my legacy Java application in the browser? I have no longer access to the source code.
Yes, you can run any Java SE application with CheerpJ without touching the source code. You only need all the .jar archives of your application.
Can I use Java libraries and integrate them in my HTML5 application using CheerpJ?
Does CheerpJ support reflection?
Does CheerpJ support dynamic class generation?
When I run CheerpJ I see 404/403 errors in the browser console. What’s going on?
Ignore those errors. CheerpJ provides a filesystem implementation on top of HTTP. In this context it is absolutely ok for some files to be missing. CheerpJ will correctly interpret 404 errors as a file not found condition.
My application compiled with CheerpJ does not work and I just see the “CheerpJ runtime ready” on the top of the screen. What’s going on?
Many first time users get stuck at this point. The most common issues are:
- Opening the HTML page directly from disk: The URL in the browser should always start with http:// or https://, if it starts with file:// CheerpJ will not work. You need to use a local web server during testing.
- Forgetting to add “/app/” prefix to the JAR files used in Web page. CheerpJ implements a virtual filesystem with multiple mount points, the “/app/” prefix is required.
- More in general, you can use the “Network tab” of the developer tools in the browser to check if the JAR is being correctly downloaded. If the JAR is never downloaded, or a 404 error is returned, something is wrong with the JAR path. If you don’t see anything in the “Network tab”, please reload the page while keeping the developer tools open.
Can I play Old School RuneScape using CheerpJ or the CheerpJ Applet Runner extension?
Not yet. The main problem is that RuneScape requires low level network connections primitives (sockets) which are not provided by browsers at this time due to security concerns. In the future we might provide a paid add-on to the CheerpJ Applet Runner extension to support this use case via tunneling.
What is the status of CheerpJ?