I have this trivial problem ... :) beleive it is major for me ... I just want to tell that to myself ....
I have a XML file in my Java project (command line based) . The XML file is in the folder <classes>/resources/db.xml.
Now I want to read this XML file.
I have tried this.getClass().getResourcesAsStream("db.xml"); /// bombs right on my face with malformed url exception
this.getClass().getResources("db.xml").getFile(); /// i feel even worse.
Can any one hash this out for me ...