java.lang.ClassNotFoundException when running in windows
dwijenchawra opened this issue · 2 comments
Hello,
I recently tried running the biobank program on Windows instead of UNIX, and encountered this issue:
Error: Could not find or load main class AccelerometerParser Caused by: java.lang.ClassNotFoundException: AccelerometerParser
I went through a fresh install following the guide in the documentation, ran the bash commands in unix and copied the files to the right folders, and installed all the pip packages.
Here is the full error output
2021-07-12 15:02:38 === Calibrating === Error: Could not find or load main class AccelerometerParser Caused by: java.lang.ClassNotFoundException: AccelerometerParser ['java', '-classpath', 'java:java/JTransforms-3.1-with-dependencies.jar', '-XX:ParallelGCThreads=1', 'AccelerometerParser', 'C:\\Users\\--------\\Documents\\VirtualboxShared\\biobankAccelerometerAnalysis\\data\\sample.cwa.gz', 'timeZone:Europe/London', 'timeShift:0', 'outputFile:C:\\Users\\----------\\Documents\\VirtualboxShared\\biobankAccelerometerAnalysis\\data\\sample-stationaryPoints.csv.gz', 'verbose:False', 'filter:True', 'getStationaryBouts:true', 'epochPeriod:10', 'stationaryStd:0.013', 'sampleRate:100', "csvTimeFormat:yyyy-MM-dd HH:mm:ss.SSSxxxx '['VV']'", 'csvStartRow:1', 'csvTimeXYZColsIndex:0,1,2,3'] Error: java calibration failed, exit 1
Any tips?
Hey that's expected. At the moment we don't support Windows yet. https://github.com/activityMonitoring/biobankAccelerometerAnalysis/pull/168/files gives you the option to adapt the path to the java class file to the one you want.
Alternatively, you will want to do something like this: angerhang@1f5f050
Hope this helps.