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
apignotti
apignotti2w ago
Hi, from the log I think the most likely root cause of the problem is
Caused by: java.net.BindException: Operation not permitted (Bind failed)
Caused by: java.net.BindException: Operation not permitted (Bind failed)
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.
apignotti
apignotti2w ago
Leaning Technologies Developer Hub
Networking - CheerpJ Documentation
Networking with CheerpJ
apignotti
apignotti2w ago
@Panini can help you further if needed
Greenbaum
GreenbaumOP2w ago
Thanks! Do you know if I am calling the JAR files correctly in the HTML file?
Panini
Panini2w ago
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:
http://localhost/global/commons-lang.jar
http://localhost/global/xml-apis.jar
http://localhost/global/jdic.jar
http://localhost/global/jnlp.jar
http://localhost/global/blaze/OROMatcher.zip
http://localhost/global/commons-lang.jar
http://localhost/global/xml-apis.jar
http://localhost/global/jdic.jar
http://localhost/global/jnlp.jar
http://localhost/global/blaze/OROMatcher.zip
Greenbaum
GreenbaumOP2w ago
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!

Did you find this page helpful?