It's all about the answers!

Ask a question

JSch dependency


jyothi rachakonda (1145) | asked May 09 '13, 10:54 a.m.
edited May 09 '13, 6:29 p.m. by Millard Ellingsworth (2.5k12431)

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:
FrameworkManager: An error event has occurred involving the bundle "com.rtc.workitem.extensions.service".

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.

2 answers



permanent link
Stephanie Bagot (2.1k512) | answered Jul 23 '13, 9:42 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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.

permanent link
Stephanie Bagot (2.1k512) | answered Jul 23 '13, 9:42 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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.

Your answer


Register or to post your answer.