cudnt run jar file builded in netbeans!
im new to java. i have developed a small desktop app using swings. it is working fine in the IDE but when running the jar file, it is giving error.
problem might be of the path of txt file i have read in the program.
please tell me how to refer a local file in the jar file.
i kept a txt file in the resources folder in the jar file and want to access it from my java file.
i have used getClass().getResource("/xyz/resources/abc.txt");
but it is not working properly after building jar.
any suggestions/solutions is appreciated.
thanks in advance!