This is a tad complicated of an issue with very little information I can provide so please bear with me or ignore.
I am developing a small Swing/JOGL program and am attempting to include a java runtime within my program so that I can simplify JVM setup for my user. My program is being run off a batch file which calls my packaged java.exe which in turn, executes my jar files.
The program runs fine for several hours at which point it exits with a "Microsoft Visual C++ Runtime Library" Error:
Runtime Error!
Program: \<path>\java.exe
abnormal program termination
My questions are:
1) Is including a JRE as a folder in my program a "correct" solution to my problem i.e. insuring a stable and consistant JVM from which to run my program? Would it better to simply force my user to install Java first?
2) By simply including the bin folder of a jre build for my platform, am I facing any sort of configuration issue? Is there a way to store configuration info other than using command line options when executing java.exe?
3) By virtue of the C++ error message and the conditions by which abnormal process termination errors happen, I'm guessing it has to do with my JOGL library, however, the program works completely fine right up until the APT, and when using the exact same version of Java using the online installer, the program works completely fine without errors.
4) Could this be something much more basic? Is it possible I'm simply not garbage collecting correctly or do not have GC configurations set correctly since I'm just using the bin folder of a JRE install?