This - in my experience - is the most reliable pattern to read files from class path.[1] Thread.currentThread().getContextClassLoader().getResourceAsStream("YourJsonFile") It gives you an InputStream [2] which can be passed to most JSON Libraries.[3]