EDIT: I went through and tested what change actually made it work. I had properly included the resource, I just wasn't reading form it properly. I had previously accessed it by using
InputStream is = RecipeSetup.class.getResourceAsStream("MASTER_RECIPE.txt"); but this did not work. I think it's because I was supposed to use a getClass method on my main function, but I wasn't calling it from main. Instead, I needed to get the classLoader using:
ClassLoader loader = Thread.currentThread().getContextClassLoader();
InputStream is = loader.getResourceAsStream("MASTER_RECIPE.txt");
No comments:
Post a Comment