I think you just configured the maximum heap size of netbeans IDE itself and not your program.
Go to your project “properties“, select “Run” category. In the “VM Options” text box put your arguments (-Xmx512m
).
More Related Contents:
- java.lang.OutOfMemoryError: Java heap space with NetBeans
- can't input value for string?
- How to use output from a splited sms [closed]
- Netbeans GUI editor generating its own incomprehensible code
- Catching java.lang.OutOfMemoryError?
- What is an OutOfMemoryError and how do I debug and fix it
- java.lang.OutOfMemoryError: Java heap space
- How to use CardLayout with Netbeans GUI Builder
- bitmap size exceeds Vm budget error android
- Connect 4 check for a win algorithm
- How to use .jar files in NetBeans?
- Encryption of video files?
- How to bundle images in jar file
- Can’t find/install libXtst.so.6?
- How to set color to a certain row if certain conditions are met using java?
- No Main class found in NetBeans
- GroupLayout autogenerated code in NetBeans
- JAX-WS client : what’s the correct path to access the local WSDL?
- NetBeans – deploying all in one jar [duplicate]
- How to include local jar files in Maven project [duplicate]
- What does ‘URI has an authority component’ mean?
- Producing executable jar in NetBeans
- how to create a remote session EJB from a client
- Unicode characters in app doesn’t show correctly [closed]
- How do I autoindent in Netbeans?
- How do you load values into a JTable so that it shows the previous values when the form is opened?
- How to modify/add code to the initComponents() method in Java using NetBeans?
- Why NetBeans 11 shows parameter name beside value while calling a method?
- How to get your Netbeans project into Eclipse
- OutputStream OutOfMemoryError when sending HTTP