I have a lot of JAR files and not sure how to correctly call them in the HTML file.
Hello. The JNLP Runner won't work for us so I'm trying just straight CheerpJ. All the examples I see just have 2 JAR files. I have way more than that. I have them all downloaded with the HTML file and 2 of the JARs in the root of wwwroot and then then rest under the Global subdirectory. I am able to get it to run partially so I know I have most things setup correctly. The login screen doesn't come up, which is the same issue I had with the JNLP Runner. This application requires Jave 8 version 171 which is very much not the latest version of even Java 8 so that may be the issue. I have attached my JNLP file and the HTML file I made as well as the browser logs. Thanks for your help!
6 Replies
Hi, from the log I think the most likely root cause of the problem is
This happens since the application is using low-level sockets, probably to implement
org.apache.commons.httpclient.HttpConnection.
CheerpJ can automatically support HTTP request if they use the standard URLConnection API. For any other case integration with tailscale networking is required.See here for more information: https://cheerpj.com/docs/guides/Networking#generalized-networking
@Panini can help you further if needed
Thanks! Do you know if I am calling the JAR files correctly in the HTML file?
Hey! Your HTML file seems to be setup correctly. I can see from the HAR file that CheerpJ was able to fetch all the JARs listed in the
cheerpjRunMain() function.
But I do see some failed network requests to additional JARs that are not listed in the HTML file. Unsure if these are needed for you application or not.
These are some of the failing requests I found:
I'll get those downloaded and added. No one who wrote this is still around so it's hard knowing everything we need. Thanks again for your help!