How can I generate and then find the log file for when I attempt to start a Windows service created through install4j? I specifically want to find the Java exception stack trace if there is one.
Context: I am trying to add a launcher to an install4j project. The launcher is set to create a Windows service from a jar.
Details: When it installs it does install all the necessary files (the jar is included in the install and runs perfectly from the command line), but the generated Windows Service and .exe fail. The .exe closes instantly, and the Service throws a 1067 error if I have the 'fail if an exception in main...' flag set to true. If I set that flag to false I get a message saying that the 'service started and then stopped...' when I attempt to start the service.
The most likely source of an error, the only one I can think of that would cause termination, is a FileNotFoundException from when I try and read my config file. I believe that I could correct my reference to that config file if I could see what the relative path results in, but I have not been able to find the log for when the windows service runs. I've found plenty of resources that appear to show how to get installer log files, even log files from the exe, but none for getting logs from a generated service.
Note: The executable generated by install4j doesnt start question is similar, but that question is asking about an exe, not about a Windows service. (Not to say I didn't try it, but running the .exe with that argument did not create a log file, even an empty one.)
Note about the config file: It's located in the directory 'config' in the same directory as the jar and exe. So, the relative path that the jar uses is "config/config.txt"