Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7513311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:08:40+00:00 2026-05-30T00:08:40+00:00

All im trying to is run an AWT and have a window show up.

  • 0

All im trying to is run an AWT and have a window show up. But instead i get a JVM error from eclipse. Error is as follows:

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (classFileParser.cpp:3174), pid=6688, tid=14480
#  Error: ShouldNotReachHere()
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode windows-amd64 )
# An error report file with more information is saved as:
# C:\xampp\htdocs\android\FireRunn\hs_err_pid6688.log

And here is the actual code that runs the program.

import javax.media.opengl.*;
import java.awt.Color;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.media.opengl.GLCapabilities;
public class Forest{//open forest

public static void main(String[] args)
{
    Frame frame = new Frame("Hello World");

    GLCapabilities glcapabilities = new GLCapabilities( );
    GLCanvas glcanvas = new GLCanvas( glcapabilities );
    frame.add(glcanvas );

    frame.setSize(300, 300);
    frame.setBackground(Color.WHITE);

    frame.addWindowListener(new WindowAdapter()
    {
        public void windowClosing(WindowEvent e)
        {
            System.exit(0);

    frame.setVisible(true); 

}//close forest
}
        }
    });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T00:08:42+00:00Added an answer on May 30, 2026 at 12:08 am

    You seemed to have mixed up your closing brackets. Here’s the final code that should work:

    public class Forest{//open forest
    
        public static void main(String[] args) {
            Frame frame = new Frame("Hello World");
    
            GLCapabilities glcapabilities = new GLCapabilities();
            GLCanvas glcanvas = new GLCanvas(glcapabilities);
            frame.add(glcanvas);
    
            frame.setSize(300, 300);
            frame.setBackground(Color.WHITE);
    
            frame.addWindowListener(new WindowAdapter() {
    
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
                }
            });//close forest
            frame.setVisible(true);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to run the following to extract the text from all the
I'm trying to run the Pocket-Island game by Wooga and have installed all prerequisites
I'm trying to run MonoDevelop on apple. I have instaled all the necessary SDK
I have been trying all afternoon to get the jQuery Sifr Plugin ( http://jquery.thewikies.com/sifr/
I have been trying all day to get some data properly formatted in a
I am trying to run all unit tests using eunit inside a folder but
I'm trying to run a mysql query which selects all users from a table
All, I'm trying to run a sed command to strip out card numbers from
I'm trying to run a .bat file from my Java app. I've tried all
Hi i have a small problem, first of all im trying to run a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.