It's all about the answers!

Ask a question

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


Pascal Jean (6012440) | asked Jun 11 '18, 9:54 a.m.

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

2 answers



permanent link
Ralph Schoon (63.1k33645) | answered Jun 11 '18, 1:50 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.

Comments
Pascal Jean commented Jun 12 '18, 8:08 a.m.

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

Regards
Pascal Jean


Ralph Schoon commented Jun 12 '18, 10:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Pascal Jean commented Jun 14 '18, 11:39 a.m.

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



Ralph Schoon commented Jun 14 '18, 3:36 p.m. | edited Jun 14 '18, 3:38 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.


permanent link
Ulf Arne Bister (1.3k413) | answered Jun 11 '18, 2:11 p.m.

 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


Comments
Pascal Jean commented Jun 12 '18, 8:08 a.m.

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

Regards
Pascal Jean

Your answer


Register or 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.