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 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

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.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like