Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: BlueJ "java.lang.OutOfMemoryError: Java heap space" Running "hello" example - Fresh Install

  1. #1
    Junior Member
    Join Date
    Jun 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question BlueJ "java.lang.OutOfMemoryError: Java heap space" Running "hello" example - Fresh Install

    So I am running a fresh install on BlueJ on a computer that has 16GB of RAM. I seem to be getting the following error when I try to run the "hello" example that is provided with BlueJ. I've tried reinstalling, and allocating more RAM to the program - neither helped. Any ideas?

    BlueJ run started: Wed Jun 07 22:25:10 CDT 2017
    BlueJ version 4.0.1
    Java version 1.8.0_121
    Virtual machine: Java HotSpot(TM) Client VM 25.121-b13 (Oracle Corporation)
    Running on: Windows 10 10.0 (x86)
    Java Home: D:\Sch\CI\BlueJ\jdk\jre
    ----
    Opening project: D:\Sch\CI\Week 3
    1496892310705: Listening for JDWP connection on address: javadebug
    Connected to debug VM via dt_shmem transport...
    Communication with debug VM fully established.
    Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    	at sun.swing.JLightweightFrame.syncCopyBuffer(JLightweightFrame.java:274)
    	at sun.swing.JLightweightFrame.resizeBuffer(JLightweightFrame.java:422)
    	at sun.swing.JLightweightFrame.reshape(JLightweightFrame.java:405)
    	at java.awt.Component.setBounds(Component.java:2261)
    	at java.awt.Window.setBounds(Window.java:3501)
    	at java.awt.Component.resize(Component.java:2184)
    	at java.awt.Component.setSize(Component.java:2173)
    	at java.awt.Window.setSize(Window.java:908)
    	at javafx.embed.swing.SwingNode.lambda$locateLwFrame$32(SwingNode.java:613)
    	at javafx.embed.swing.SwingNode$$Lambda$527/12219069.run(Unknown Source)
    	at javafx.embed.swing.SwingFXUtils.runOnEDT(SwingFXUtils.java:288)
    	at javafx.embed.swing.SwingNode.locateLwFrame(SwingNode.java:608)
    	at javafx.embed.swing.SwingNode.lambda$resize$25(SwingNode.java:372)
    	at javafx.embed.swing.SwingNode$$Lambda$727/18922273.run(Unknown Source)
    	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

  2. #2
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: BlueJ "java.lang.OutOfMemoryError: Java heap space" Running "hello" example - Fresh Install

    When you say you have tried allocating more memory to BlueJ how exactly did you do this? The more you give us the less we will repeat ourselves, and repeat steps you have already tried.

Similar Threads

  1. Exception in thread "Timer-0" java.lang.OutOfMemoryError: Java heap space
    By venkatakrishna in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 16th, 2013, 03:16 AM
  2. Exception in thread "Timer-0" java.lang.OutOfMemoryError: Java heap space
    By venkatakrishna in forum Member Introductions
    Replies: 1
    Last Post: August 16th, 2013, 03:16 AM
  3. Replies: 2
    Last Post: June 22nd, 2013, 10:30 AM
  4. Replies: 7
    Last Post: August 13th, 2011, 01:22 AM
  5. AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    By nasi in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 25th, 2010, 10:37 PM