I have a rather silly question, but I haven\'t been able to find a solution for this:
When I try and read a file I get a \"file not found error\" is runtime. It
Looks like you are missing a leading slash. Perhaps try:
Scanner s = new Scanner(new File("/home/me/java/ex.txt"));
(as to where it looks for files by default, it is where the JVM is run from for relative paths like the one you have in your question)