problem running RTC jar on windows
![]()
Hi
I am trying to build a client application to be used standalone.
I used the Plain Java API 4.0.3 and test it in my eclipse environment and it works.
I export this application in a runnable JAR file and tried to run it on windows command line
I get the error message:
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:420)
at com.ibm.team.repository.client.internal.TeamRepositoryService.createSharedTeamRepository(TeamRepositoryService.java:526)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:112)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:131)
at main.runQuery.login(runQuery.java:183)
at main.runQuery.main(runQuery.java:80)
Caused by: java.lang.IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.
at com.ibm.team.repository.common.internal.querypath.AbstractQueryPathModel$Implementation.getItemType(AbstractQueryPathModel.java:192)
at com.ibm.team.repository.common.query.IQuery$Factory.newInstance(IQuery.java:93)
at com.ibm.team.repository.client.internal.ContributorManager.createAllContributorsQuery(ContributorManager.java:72)
at com.ibm.team.repository.client.internal.ContributorManager.<clinit>(ContributorManager.java:60)
... 6 more
what is the problem?
|
2 answers
![]()
Ralph Schoon (62.7k●3●36●43)
| answered Jul 23 '14, 3:42 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I think there are too many possibilities to tell.
In general I have done that and it works, provided you have a JDK and provide the Plain Java Client Libraries in the classpath. In https://rsjazz.wordpress.com/2014/04/11/rtc-extension-workshop-overhaul/ I talk about how this can be done in general. You can download the batch with the workshop linked in the post. Comments Assuming it runs in Eclipse, check the JDK that is used (you need a JDK, most likely, since the EXT folder is needed). I'd use the JDK that comes with RTC. Check the readme file in the snippet that come with the plain java client libraries for more hints.
|
![]()
I could resolve by following the steps mentioned @
https://jazz.net/forum/questions/23488/self-executing-jar-with-plain-java-api/181133
|