It's all about the answers!

Ask a question

RTC API library access restriction


Zaid Al-Khishman (351015) | asked Nov 06 '14, 3:02 p.m.
edited Nov 06 '14, 3:30 p.m.
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

Accepted answer


permanent link
sam detweiler (12.5k6189201) | answered Nov 06 '14, 11:59 p.m.
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

Your answer


Register or to post your answer.