Installation of RTC WorkItem Command Line Version 3.0
1. Download opencsv 2.3 from
http://sourceforge.net/projects/opencsv/files/opencsv/2.3/
and place the library opencsv-2.3.jar into the folder lib in the WCL folder. Done
Which Java Version is suggested?
2. Copy the Eclipse plugins from RTC Eclipse into the lib folder
Open the Eclipse Plugins folder for examle jazz\client\eclipse\plugins and search for a file
com.ibm.team.workitem.rcp.core_*.jar
Copy this jar File into the folder lib in the WCL folder. Done.
Running the scrpt by running wcl I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVWriter
at com.ibm.js.team.workitem.commandline.commands.ExportWorkItemsCommand.createWriter(ExportWorkItemsCommand.java:376)
at com.ibm.js.team.workitem.commandline.commands.ExportWorkItemsCommand.process(ExportWorkItemsCommand.java:311)
at com.ibm.js.team.workitem.commandline.framework.AbstractTeamRepositoryCommand.execute(AbstractTeamRepositoryCommand.java:89) at com.ibm.js.team.workitem.commandline.WorkitemCommandLine.runCommands(WorkitemCommandLine.java:293)
at com.ibm.js.team.workitem.commandline.WorkitemCommandLine.run(WorkitemCommandLine.java:224)
at com.ibm.js.team.workitem.commandline.WorkitemCommandLine.main(WorkitemCommandLine.java:174)
Caused by: java.lang.ClassNotFoundException: au.com.bytecode.opencsv.CSVWriter
What did I miss?
Many thanks in advance.
Christine
Accepted answer
Comments
Tried it again. The download behind the mentioned link is an entire folder structure. I tried it with only the opencsv-2.3.jar (date: 2011/04/15) executable as well as the entire folder. both Failed.
Do have one more hint for me.
Many thanks, Christine
Download the opencsv-2.3-src-with-libs.tar.gz file from the page. Link: http://sourceforge.net/projects/opencsv/files/opencsv/2.3/opencsv-2.3-src-with-libs.tar.gz/download . Use 7Zip or other tools to unpack and untar. Go into the folder opencsv-2.3\deploy locate opencsv-2.3.jar and copy that into the libs folder of WCL.
Running the tool as Eclipe Project it is working fine.
Maybe you have a Java version issue with running it from the Jar? Not sure. If it works in Eclipse, it should work the same out of it. The difference is the JDK you provide, I guess.
About Your question above - the Java version to use: The WCL bat is set up to use the JDK that comes with the RTC Eclipse client one. Try to use that JDK.
Hi
I'm using version 4 of the wcl, and got my structure ready. It works with other commands like printtypeattributes , but I'm trying to export the attachments.
I have downloaded and paste them in the lib folder of the WCL but I'm getting the same error. Also the folder of output already exist:
Hi Ralph
I have the folder where the output is created already. I try with the test.csv created already also but it did not worked.