Proof-of-concept language checker using the Self-defined project.
- J2EE compatible web server (eg. Tomcat)
- Clone the repository
- Get the dependencies and ensure they're either in
WEB-INF/lib
or the webserver's sharedlib
:- SQLite JDBC driver (eg. https://bitbucket.org/xerial/sqlite-jdbc/downloads/sqlite-jdbc-3.30.1.jar)
- JSON library (eg. http://stleary.github.io/JSON-java/index.html)
- Compile the code (YMMV)
cd WEB-INF export LIBPATH=/path/to/shared/java/libraries javac -d classes -classpath src:classes:lib/json-20200518.jar:$LIBPATH/el-api.jar:$LIBPATH/servlet-api.jar:$LIBPATH/sqlite-jdbc.jar src/uk/org/mafoo/selfdefined/Checker.java
- Build a war file
jar -cvf self-defined.war .
- Deploy! (move the war file to your webservers
/webapps
folder and wait for it to deploy)
The included database is build using the data from https://github.com/tatianamac/selfdefined.