I've experienced this problem a couple of times, when using native code
with JNI. There were always problems in the C++ code (wrong type cast,
array access out of bounds, NPE etc.).
I also experienced the behavior that starting from Eclipse works and
stand-alone not and vice versa. But I used random numbers in my code and
probably they are randomized differently