Home
Support Forums

How to add libraries when building project

Hi.
First of all, my native language is not English, so please understand even if the grammar is weird.
In short, I want to add a function using jsoup in jsp file to html file. However, jsoup.jar exists not in the project folder but in the lib folder, which is the internal folder of the folder named WEB-INF.
So, I would like to know how to apply the jsoup library together when building a project.
The link below is my webpage trying to apply jsoup(It doesn’t work)

https://clever-mcclintock-699965.netlify.app/

And below is the code of the jsp file with jsoup and project image
20201123_232014

<%@page import="java.io.IOException"%>
<%@page import="org.jsoup.Jsoup"%>
<%@page import="org.jsoup.nodes.Document"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%
try { 
    String connUrl = "https://www.indeed.com/worldwide";
    Document doc = Jsoup.connect(connUrl).get(); 
    out.println(doc.toString()); 
} catch (IOException e) {
    e.printStackTrace(); 
}
%>

Hi, @MGS-95. It isn’t possible to run a Java web server at Netlify. The following support guide explains why:

If there are other questions, please let us know.