Brian,
Thank you for the compiled distribution file of the RedCap-tool.
Unfortunately I am not able to get it to work. I am trying to execute the .jar according to instructions.
We have a RedCap server running and I am able to connect to it's API with R.
I have tried the following (java version "1.8.0_40"):
> PS C:\Users\oskari\Desktop\LabKeyDevBuild-Redcap\LabKeyDevBuild-Redcap> java -classpath "lib/*;Redcap-DevBuild.jar" -DserverUrl="
http://biodb.uef.fi/redcap/api/" -DprojectName="Test project Epilepsy" -DsubjectId="subject_id" -DexportLocation="c:/temp/export.zip" -DtimepointType="date" org.labkey.redcap.RedcapExport
which gives the following error messages:
INFO : Starting export
Fri Apr 10 14:45:45 EEST 2015
ERROR : URL, project name, subject ID field, and archive file name are not specified
Fri Apr 10 14:45:45 EEST 2015
ERROR : java.lang.IllegalArgumentException: URL, project name, subject ID field, and archive file name are not specified
at org.labkey.redcap.RedcapConfiguration.getConfiguration(RedcapConfiguration.java:99)
at org.labkey.redcap.RedcapExport.main(RedcapExport.java:100)
I also tried the same with config file:
<?xml version="1.0" encoding="UTF-8"?>
<redcapConfig xmlns="
http://labkey.org/study/xml/redcapExport">
<exportLocation>tempredcapArchive.zip</exportLocation>
<timepointType>date</timepointType>
<projects>
<project>
<projectName>Test project Epilepsy</projectName>
<serverUrl>
http://biodb.uef.fi/redcap/api/</serverUrl>
<subjectId>subject_id</subjectId>
</project>
</projects>
</redcapConfig>
> java -classpath "lib/*;Redcap-DevBuild -DconfigFile="c:/temp/config.xml" org.labkey.redcap.RedcapExport
which gives the following error messages:
INFO : Starting export
Fri Apr 10 15:39:06 EEST 2015
INFO : Command Options
archive path: C:\Users\oskari\Desktop\LabKeyDevBuild-Redcap\LabKeyDevBuild-Redcap\tempredcapArchive.zip
timepoint type: DATE
project name: Test project Epilepsy server URL :
http://biodb.uef.fi/redcap/api/ subject ID : subject_id
match subject ID by label : false
Fri Apr 10 15:39:06 EEST 2015
log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.SingleClientConnManager).
log4j:WARN Please initialize the log4j system properly.
ERROR : java.lang.NoClassDefFoundError: org/apache/tika/detect/Detector
at org.labkey.api.reader.TabLoader.<clinit>(TabLoader.java:74)
at org.labkey.redcap.RedcapCommandResponse.getLoader(RedcapCommandResponse.java:27)
at org.labkey.redcap.RedcapExport.getDatasetMetadata(RedcapExport.java:231)
at org.labkey.redcap.RedcapExport.exportProject(RedcapExport.java:126)
at org.labkey.redcap.RedcapExport.main(RedcapExport.java:102)
Caused by: java.lang.ClassNotFoundException: org.apache.tika.detect.Detector
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 5 more
Could you help me out?
PS.
v15.2 sounds great!