I am using Jdeveloper to create a small software which reads Weatherdata from a .csv file and proceses it .
Unfortunatelly i am stuck at the first step, reading data from file . Keep getting back the following Exception : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections4/MultiValuedMap
Please see attached my progress so far , please feel free to edit or comment .
public class Main {
/**
* @param args
*
*/
@SuppressWarnings({"rawtypes", "unchecked"})
public static void main(String[] args) throws IOException {
String fileName = "C:\\JDeveloper\\mywork\\Csv reading\\Project1\\wdata1.csv";
Path myPath = Paths.get(fileName);
try (BufferedReader br = Files.newBufferedReader(myPath, StandardCharsets.UTF_8)) {
HeaderColumnNameMappingStrategy<Read> strategy = new HeaderColumnNameMappingStrategy<>();
strategy.setType(Read.class);
CsvToBean toBean = new CsvToBeanBuilder(br).withType(Read.class)
.withMappingStrategy(strategy)
.withIgnoreLeadingWhiteSpace(true)
.build();
List<Read> Data = toBean.parse();
Data.forEach(System.out::println);
}
}
Also have a different class with the column names :
public class Read {
@CsvBindByName
private String stationid;
@CsvBindByName
private String datestamp;
@CsvBindByName
private double wgust;
@CsvBindByName
private int wdir;
// get, setters here
}
I have tried to import the neccesary files, tried most of the solution i found, but none of them seems to be working . I am really new to this, i would appreciate all the helps !
The file I am using looks like this : 
"Almost" Good Answers: