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

While comiling java for RTC, many classes like "com.ibm.team.links.common.IReference" are missing, where are they?

Hello,
I'm using RTC 6.0.2

I would like to download / upload Work Items attachments based on the information found there:  
https://rsjazz.wordpress.com/2012/09/21/downloading-attachments-from-work-items/
https://rsjazz.wordpress.com/2012/08/01/uploading-attachments-to-work-items/

I started with the download side and try to compile the
WorkItemDownloadAttachment.java with javac.

There are many "import class" which I don't have.
I did not see them in the RTC-SDK, nor in the Eclipse RTC environment. May I didn't look weel.

Where I can find them?

This is the first time I try to do such compilation, so I certainly missing some information.

The necessary classes are:
import com.ibm.team.links.common.IReference;
import com.ibm.team.process.client.IProcessClientService;
import com.ibm.team.process.common.IProjectArea;
import com.ibm.team.repository.client.ITeamRepository;
import com.ibm.team.repository.client.ITeamRepository.ILoginHandler;
import com.ibm.team.repository.client.ITeamRepository.ILoginHandler.ILoginInfo;
import com.ibm.team.repository.client.TeamPlatform;
import com.ibm.team.repository.common.TeamRepositoryException;
import com.ibm.team.workitem.client.IAuditableClient;
import com.ibm.team.workitem.client.IWorkItemClient;
import com.ibm.team.workitem.common.IWorkItemCommon;
import com.ibm.team.workitem.common.model.IAttachment;
import com.ibm.team.workitem.common.model.IAttachmentHandle;
import com.ibm.team.workitem.common.model.IWorkItem;
import com.ibm.team.workitem.common.model.IWorkItemReferences;
import com.ibm.team.workitem.common.model.WorkItemEndPoints;

Thank you in advance
Pascal Jean

0 votes



2 answers

Permanent link

 Hi,

please make sure to set up your Eclipse / Dev Environment exactly as described in the RTC Extension Workshop with the right SDK and PlainJavaAPI Downloads for 6.0.2 Then all references should be there.
Once you get the examples in the workshop running getting the above examples should work, too.

- Arne

1 vote

Comments

Thank you to Ulf,
I'll check tomorrow and follow step by steps the suggestions.

Regards
Pascal Jean


Permanent link
Both posts strongly suggest that beginners should follow the getting started link. The getting started points to Learning To Fly: Getting Started with the RTC Java API’s - Installing the SDK and the plain Java Client Libraries. The follow up  Understanding and Using the RTC Java Client API explains an additional step to be able to use the SDK and the Plain Java Client Libraries.

As a minimum you need the RTC Plain Java Client Libraries - unzipped and provided in the buildpath.

2 votes

Comments

Thank you to Ralph,
I'll check tomorrow and follow step by steps the suggestions.

Regards
Pascal Jean

Hello Ralph,
I have a doubt about the coding from

Is a coding  whih has to run o the Server side?
Thank you in advance
Pascal Jean


Almost all my blog posts explain if the API is client, common (client and server) or server. This includes the post above. Please carefully read the post.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

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,927
× 169
× 89

Question asked: Jun 11 '18, 9:54 a.m.

Question was seen: 3,182 times

Last updated: Jun 14 '18, 3:38 p.m.

Confirmation Cancel Confirm