I do not think making a chatbot from scratch is a good idea. You should find an existing framework that you like and start from there. There should be plenty of Java resources available.
Also, it is unnecessary to “crawl” Wikipedia, when you can use the DBpedia web service.
See also my quick and dirty webpages: