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

RTC API library access restriction

I'm getting a couple of errors regarding the usage of 2 methods from the RTC API

here they are

-first one
Description    Resource    Path    Location    Type
Access restriction: The method createReferenceToItem(IItemHandle) from the type IReferenceFactory is not accessible due to restriction on required library C:\Program Files\IBM\IMShared\plugins\com.ibm.team.repository.common_1.4.0.v20140623_2326.jar    FindChangedFiles.java    /mailsender_RTC/src/mailsender_rtc    line 92    Java Problem

-second one
Description    Resource    Path    Location    Type
Access restriction: The method findWorkItemById(int, ItemProfile<IWorkItem>, IProgressMonitor) from the type IWorkItemCommon is not accessible due to restriction on required library C:\Program Files\IBM\IMShared\plugins\com.ibm.team.workitem.common_3.2.1.v20140604_0005.jar    FindChangedFiles.java    /mailsender_RTC/src/mailsender_rtc    line 86    Java Problem

source file : https://jazz.net/wiki/pub/Main/RTCPlainJavaAPIs/findChangedFiles.zip
RTC:4.0.7
JRE:1.6 bundled with RTC 4.0.7

0 votes


Accepted answer

Permanent link
I downloaded the source and set it up to use the V 5.0 plain java libs and it runs fine..

it looks like you have the runtime libs set incorrectly.

download the plainjava libs from the product version (all downloads section) downloads page
unzip the zip file
create a user 'library' of all the jars in that folder.
add that libarary to you eclipse project build path properties
Zaid Al-Khishman selected this answer as the correct answer

1 vote

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

Question asked: Nov 06 '14, 3:02 p.m.

Question was seen: 3,054 times

Last updated: Nov 06 '14, 11:59 p.m.

Confirmation Cancel Confirm