I have a program that accesses the internet using JSOUP. The program works fine when inside NetBeans but as soon as I build the project and run the jar file outside of NetBeans, the processing that requires internet does not work. The jar file does not close, everything else including the database, sending emails, navigating etc all works fine.
doc = (Document) Jsoup.connect(searchURL).timeout(10000).userAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 Edg/84.0.522.52")
.referrer("http://www.google.com").followRedirects(true).ignoreHttpErrors(true).get();
is this problem related to the jar file being unsigned? I have tried using Java Web Start in NetBeans but it always unticks itself.