Grails - Import Jsch Results in "Package Com. Jcraft. Jsch Does Not Exist"
I'm Porting Some Java Code into Grails Framework and I Keep Getting This Error When Importing Libraries (Jcraft): Import Com. Jcraft. Jsch. Channelsftp; Import...
I'm porting some java code into GRAILS framework and I keep getting this error when importing libraries (jcraft):
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.Session;
import com.jcraft.jsch.ChannelSftp.LsEntry;
MyServiceImpl.java:47: package com.jcraft.jsch does not exist
[groovyc] import com.jcraft.jsch.*;
[groovyc] ^
I've tried adding this to 'BuildConfig.groovy', but still same error.
dependencies {
compile 'com.jcraft:jsch:0.1.43'
Any idea what I need to add? I also added the actual jar file in the Build path library. Many thanks.
1 Answer
have you tried to copy this library into the lib folder of the grails-app structure and removed all refernces from e.g. BuildConfig.groovy ...
i can also try to unpack the library and check if the lib-structure is correct.