I created a simple Java CLI application. It uses a third-party lib library that uses native code through JNI (swig). When using the Run function in Netbeans, the application works fine and has acceptable performance.
The application reads the file, iterates over all the entries in it, performs the calculation, and then writes the output file.
Now, when I create an application and use it from the CLI (Win 7), the application starts up and performs calculations mainly for the first 3 entries, and then it crashes. Rarely does it fail later, and deleting the 4th record does not change this, which means that the failure is not caused by poor input or the absence of a link to its own library. Crash without error message, Java dialog only:
[Window Title]
Java(TM) Platform SE binary
[Main Instruction]
Java(TM) Platform SE binary has stopped working
[Content]
A problem caused the program to stop working correctly. Please close the program.
[Close the program]
Even more confusing is that it once worked. I rebooted at least once since (Friday). Could this be a problem with your Windows settings or environment variables?
The Windows Event Viewer reports the following:
Faulting application name: java.exe, version: 7.0.450.18, time stamp: 0x525404d0
Faulting module name: ntdll.dll, version: 6.1.7601.18205, time stamp: 0x51db96c5
Exception code: 0xc0000374
Fault offset: 0x000c385b
Faulting process id: 0xd38
Faulting application start time: 0x01ceea75b763490c
Faulting application path: C:\Windows\system32\java.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: fc71e0fd-5668-11e3-a3f1-083e8e9dc95b
Now am I confused? How can I solve this problem? What makes netbeans different than cli?
source
share