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

  • SEARCH
  • Home
  • 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 8256171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:46:20+00:00 2026-06-08T01:46:20+00:00

I just did a project…clean and then automatically nothing works. Exception in thread main

  • 0

I just did a project…clean and then automatically nothing works.

Exception in thread "main" java.lang.NoClassDefFoundError: adventure/Main
Caused by: java.lang.ClassNotFoundException: adventure.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: adventure.Main. Program will exit.

I can do build but in eclipse there is no output for build and they thought that it is some advantage that you can’t just right-click a file and select compile…

Why did they make Eclipse able to go into this unmanageable state? What is the advantage with this state? If there is no advantage with this state of the project, why is it possible?

I did nothing unusual except experimenting with my build path to be able to generate a runnable JAr which of course failed since eclipse can’t even package a jar correctly.

The code from the class won’t help showing here since it is not found anyway.

Update

I can reproduce this error just by doing a “fresh” SVN checkout and then work on the project and as soon as I use the “function” clean then eclipse automatically destroys my work and makes it impossible to continue the project just because I’m using Eclipse the world’s luosiest IDE ever that they had a decade to developer and this can’t get to do basic function like compile.

  • 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-08T01:46:22+00:00Added an answer on June 8, 2026 at 1:46 am

    I must agree with the comments that it is unlikely this issue was caused by Eclipse. Never the less, assuming it was:

    Eclipse works this way because it uses an autobuilder rather than compile after the fact. This can be nice as far as error-catching, but can also be problematic for large projects. As to why a simple manual compile isn’t provided, Eclipse is attempting to hide such development steps as compilation and likely didn’t consider the cases where such errors could occur.

    Try turning the autobuild function off and back on again:
    Window > Preferences > General > Workspace > Build automatically

    If that doesn’t work:
    Make a backup of the file containing the class and then delete it. Restore from the backup.

    Either of these should force Eclipse to recompile everything.

    If that still doesn’t solve your problem, then the error probably wasn’t from Eclipse, it just never had a chance to find it after whatever cleaning you did. Thankfully, by forcing Eclipse to recompile, it should point you at the error.

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

Sidebar

Related Questions

I just did a git init on the root of my new project. Then
I just did File -> New Project last night on a new project. Ah,
I just started my first Mercurial project. I did a 'cd' into my source
I just did a fresh install of Apache server 2.2. Everything works. When I
I'm using git and Codebase for a project. I just did a test and
I've learned scheme and quickly mastered a lot of it, then did a project
Just like I did before, I used the following code for my new project.
I just did something dumb. In my fooclient project, I just did: git remote
Here is an xcode project that I just did to ask this question: http://www.mediafire.com/?z26ufsfhby62br9
I did clean project and now i cannot run any of my code. Any

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.