AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Where to include aiml bot files in the project
 
 

Hello I am creating a chat bot web application using program ab in java. If I access the files from external storage, it is working. If I store the files inside my project, it is not working? I don’t know what is the problem.

This code is not working, ServerCode is my project name in eclipse.

String botName "super";
String botPath "ServerCode/aiml";
Bot bot = new Bot(botNamebotPath);
Chat chatSession = new Chat(bot);
String request =  msg.toUpperCase();
String response chatSession.multisentenceRespond(request);    
System.out.println(response); 

While this code is working,

String botName "super";
String botPath "E:\ab";
Bot bot = new Bot(botNamebotPath);
Chat chatSession = new Chat(bot);
String request =  msg.toUpperCase();
String response chatSession.multisentenceRespond(request);    
System.out.println(response); 

What is the problem? how to store the folders and its sub folders inside the project, so that when I can create war file, I include those files in that war file.

 

 
  login or register to react