String Comparison - 4th year project
4th year Software Development project. The project is a dynamic Web Application using Java Server Pages JSP to compare two text strings using string comparison algorithms. This is achieved using the Java Remote Method Invocation RMI API which provides a mechanism to create distributed applications in java. Java RMI allows a machine (JVM) to invoke methods on another machine (JVM). The first machine (JVM) looks up the method it wants to invoke in the RMI Registry and sends the two strings. The method is invoked on the second machine (JVM) and the two strings are compared and the result returned to the first machine (JVM).
Languages, Technologies and Implementation Architecture used for this project:
[Hamming Distance][https://en.wikipedia.org/wiki/Hamming_distance]
[Levenshtein Distance][https://en.wikipedia.org/wiki/Levenshtein_distance]
[Damerau-Levenshtein Distance][https://en.wikipedia.org/wiki/Damerau%E2%80%93Levenshtein_distance]
Download and extract the zip folder here JavaRMI
Eclipse JEE Neon. You can download here Eclipse JEE Neon
Insall Java JDK/JRE
Video tutorial of How to Install Java JDK/JRE here Install Java
Install Eclipse Neon JEE
Video tutorial of How to Install Eclipse Neon on Windows 10 here Install Eclipse Neon JEE
Insall Apache Tomcat
Video tutorial of How to Install Apache Tomcat on Windows here Install Apache Tomcat
There are two methods for deployment. Running the application using the string-service.jar and comparator.war files is the fastest as you just need java and Apache installed.
To run the application in Eclipse
1) right click on Servant.java in the ie.gmit.sw package and select —> run as —> java application.
2) right click on the server in the servers tab and start server.
3) right click on index.jsp in the webcontent folder and run on server.
Navigate into the apache-tomcat/bin folder using a seperate Command Line. Run the comparator.war with the following command startUp.bat.
Open a browser and type localhost:8080/comparator into the address bar.
1) Select Algoritm from the drop-down menu
2) Enter a text string into each input box
3) Click the compare button
This project is licensed under the MIT License