It's all about the answers!

Ask a question

[closed] JSch dependency


jyothi rachakonda (1145) | asked May 09 '13, 10:54 a.m.
closed Sep 19, 11:16 a.m. by Ralph Schoon (63.5k33646)

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.

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



permanent link
Stephanie Bagot (2.1k1513) | 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.1k1513) | 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
cew ewo (11) | answered Sep 19, 6:22 a.m.