I've a new grails 2.0 project and i want to integrate HtmlUnit-Libraries into it. I just moved the HtmlUnit 2.9 libs into the "lib"-Folder of my grails project and used them in my grails-service. When i start my application, using intelliJ 11 IDE, it doesn't start because grails can't find the imports.
In my Service class i did:
import com.gargoylesoftware.htmlunit.WebClient
import com.gargoylesoftware.htmlunit.BrowserVersion
After starting the grails run-app script, i get the following exception:
/Users/whitenexx/Workspaces/sts-workspace/OMTool/grails-app/services/omtool/TestService.groovy: 4: unable to resolve class com.gargoylesoftware.htmlunit.BrowserVersion
@ line 4, column 1.
import com.gargoylesoftware.htmlunit.BrowserVersion^
How do I integrate java-libraries into an grails project?