It's all about the answers!

Ask a question

Using different PlainJavaApi-Versions in one application?


Bastian W (217) | asked Jul 13 '16, 8:28 a.m.
edited Jul 13 '16, 8:41 a.m. by Ralph Schoon (63.1k33646)
Hi all,

i am writing an application, which can read a list of hosts with different versions (RTC 4.x,5.x,6.x), because I want to modify/add/delete/etc. programmatically workitems or streams/components/etc....That works fine for every server separately but not successively and automatic, because the problem is i always have to add in my eclipse-project via user libary the relevant PlainJavaApi.

My solution and login is actual via a config-file like that (without the version):

https://localhost:9443/ccm;username;password;v6
https://serverxyz.com/ccm;username;password;v5
https://serveruvw.com/ccm;username,password,v4

Now i added the versions behind the string. After reading i can split my strings to save successively the versions in a variable. Depending on the variable/version, he should use the right PlainJavaApi.

I have tried to add all PlainJavaApi's (4,5,6) to my project, but the eclipse doesn't recognize the right libary. I have to delete the libary and add the next one for every version :(

How can eclipse know which lib he has to use? Or how can i talk to all RTC Versions in one application, does anybody have an idea?

Best Regards!

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Jul 13 '16, 8:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I think this is Java Basics and has nothing to do with RTC. For all I can say you can either call your application with different versions of the plain Java Client Libraries in the classpath, or you have to write your own classloader that loads the correct version.

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.