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 8521953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:58:17+00:00 2026-06-11T06:58:17+00:00

I am using Eclipse + Window Builder + few third party libraries to build

  • 0

I am using Eclipse + Window Builder + few third party libraries to build a gui application,

Entry point for my application resides in MainWindow.java file, which also contains the gui of the application, other than that I have few helper classes.

My application works fine, but when I checked into bin folder I find four more class files there namely:
1. MainWindow$1.class
2. MainWindow$2.class
3. MainWindow$3.class
4. MainWindow$4.class.

Now I don’t understand why these files are here, When I deleted these files, Eclipse throws an exception

Exception in thread "main" java.lang.NoClassDefFoundError: gui/MainWindow$1
at gui.MainWindow.main(MainWindow.java:71)
    Caused by: java.lang.ClassNotFoundException: gui.MainWindow$1
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)

the code that throws the exception is:

public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            try {
                MainWindow window = new MainWindow();
                window.frmMailExtractor.setVisible(true);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    });

I am not able to find out why these files are there and who put them? any ideas?

OK so these are the anonymous classes, but why the Exception then?…and why can’t I see them in my eclipse..becasue when I export it as a runnable jar, the jar throws the same exception

  • 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-06-11T06:58:18+00:00Added an answer on June 11, 2026 at 6:58 am

    These are class files generated for anonymous inner classes inside MainWindow. It probably contains a bunch of event listeners implemented as such.

    Anonymous inner classes get compiled into separate class files with the name <OuterClass>$<nnn>.class, where <nnn> is a compiler-generated number.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im trying to install the google GUI builder Window maker pro im using eclipse
i'm using eclipse platform and window builder pro within. I've already created new project
I am using Eclipse Indigo on Mac. I just set up the Window Builder
I'm using eclipse on a windows 7 x64 to create a new Java Application.
Here is the UI of Windowbuilder: http://www.java-forums.org/blogs/eclipse/attachments/2900d1328496793-using-windowbuilder-design-gui-eclipse-properties-pane.png The Properties view is at the bottom
Abstract : I'm looking for a way to configure Eclipse Window Builder's code generator
I'm using Eclipse on mac for developing android apps. When I run the application
I've been using Eclipse with each project in a separate window by right clicking
While compile Win32 applications on eclipse using the MinGW toolchain (and Internal Builder), eclipse
I am using Windows Builder Pro in my Eclipse Helios. In NetBeans I know

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.