I have a program that uses a lot of memory, I compile it within Netbeans using the flag -Xmx1500m in order to make a lot more available. When I run within Netbeans everything is fine the program runs. When I run the executable from a command line using
java -jar executable.jar it fails "Exception in
thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space".
It was working fine, the only thing I did was upgrade to the latest version of Java 1.8. The code is exactly the same and inside Netbeans it still works (even though there would be less memory because Netbeans is running!). When I go to Java control panel it says I am using Java V1.7, I need to keep that on there to access a 32 bit ODBC driver but I did expect to see V1.8 as well. If I run java -version from my command line I get 1.8.0_65. Why does it work in Netbeans but not in Live?