[closed] JSch dependency
jyothi rachakonda (1●1●4●5)
| asked May 09 '13, 10:54 a.m.
closed Sep 19, 11:16 a.m. by Ralph Schoon (63.5k●3●36●46) Hi,
I am writing a task(server side) in which I need to use JSch to connect to a server.
Could anyone please help me in how to import/add JSch dependency.
I have tried adding the dependency (com.jcraft.jsch) from Dependencies tab in plugin.xml which intern adds the dependency in MANIFEST.MF.
But I am getting the following error while deploying the task-serivce.
CRJZS0383W Failed to resolve the bundle "com.rtc.workitem.extensions.service".
When I try adding the dependency from "Automated Management of Dependencies" Tab (without adding to MANIFEST.MF) service gets resolved successfully.
But I get the error when the task runs:
java.lang.Error: Unresolved compilation problems:
The import com.jcraft cannot be resolved
The import com.jcraft cannot be resolved
The import com.jcraft cannot be resolved
The import com.jcraft cannot be resolved
JSch cannot be resolved to a type
JSch cannot be resolved to a type
Session cannot be resolved to a type
ChannelExec cannot be resolved to a type
ChannelExec cannot be resolved to a type
JSchException cannot be resolved to a type
any help will be very much appreciated.
|
The question has been closed for the following reason: "Problem is not reproducible or outdated" by rschoon Sep 19, 11:16 a.m.
3 answers
You will probably need to add additional JRE class libraries since the JSch cannot be resolved. Eclipse/Java documentation should be able to help you find the correct package and instructions for applying it.
|
You will probably need to add additional JRE class libraries since the JSch cannot be resolved. Eclipse/Java documentation should be able to help you find the correct package and instructions for applying it.
|
Have you tried adding the dependency to the classpath instead of just the MANIFEST.MF? |