I'm running the exact same eclipse project on Ubuntu and on Windows but getting different output.
The unevenly behavior occurs in the following code:
String regex = "<token id=\"(.*)\">.*\n.*<word>(.*)</word>.*\n.*<lemma>(.*)</lemma>.*\n.*\n.*\n.*<POS>(.*)</POS>";
Pattern pattern = Pattern.compile(regex);
Matcher matcher = pattern.matcher(fileAsString);
while (matcher.find()) {
...
}
The (matcher.find()) check return false on Windows but true on Ubuntu (which is the expected behavior).
Eclipse Juno and jdk7 on both.
Maybe it's not related to the operating system, but that's the only different I found after debug parallelly and after check the project's properties in the two environments..
Any idea to the differences???