I need to add an exel file to my jar so that it is portable. I know the answer uses getClass (). GetResource .... but I have no clue on how to use this code.
I have an exel file in the src folder with my class files, it works in netbeans, but not when I open the jar file on another PC. i get filenotfound exception
here is the code i used:
public class WindageLogic {
Can someone give me an implementation code that will allow me to access this file from the jar application, I spent the whole weekend browsing the material on the Internet, but I donβt understand how I can use these getresource methods.
thanks alot
source share