Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[closed] JSch dependency

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.

0 votes


The question has been closed for the following reason: "Problem is not reproducible or outdated" by rschoon Sep 19 '24, 11:16 a.m.


3 answers

Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link

Have you tried adding the dependency to the classpath instead of just the MANIFEST.MF?


0 votes

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,949

Question asked: May 09 '13, 10:54 a.m.

Question was seen: 7,249 times

Last updated: Sep 19 '24, 11:16 a.m.

Confirmation Cancel Confirm