I am new to creating files in java. I created a help file "sample.chm" with a third-party tool, adding it to a java program with the package name as a "help" with the runtime class and built a jar. When I run the jar file, it gives me the error that "the file cannot be found, null pointer exception". I gave a relative path for identifying a file like "../help/sample.chm", but it does not work, and I tried with various classes to refine the path. But still the same mistake.
Ask you to help me fix it.
The jar can be placed on different systems and open this help file without any problems.
Hope my explanation is enough to identify the problem.
Hi,
Chandu
source
share