0
After a lot of pain, I was able to develop a Java application, with graphical interface (swing), which simulates access to a particular site and extracts data. The problem is that as it simulates a browser (with Htmlunit), it needs Tomcat and when I try to run the application on another machine (and I will need to use it on both Windows and MAC machines), it does not run because of the Tomcat radius.
The question is: How do I ship Tomcat into an application that is not Web, so that the jar is "self-sufficient"? I use Netbeans, and if information is important, the application uses Apache Commons Codec, Apache POI (Apache) and Htmlunit libraries.
Maybe it’s worth it, instead of Tomcat, you take a look at Jetty.
– StatelessDev
I am accepting anything that solves my problem. The question is: How do I ship the web server into my Java application??
– Vinicius Giancristoforo