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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:20:38+00:00 2026-06-10T15:20:38+00:00

When I run some java program with a command java ExceptionTest , exceptions are

  • 0

When I run some java program with a command java ExceptionTest , exceptions are sometimes omitted and looks like

Exception in thread "main" java.lang.NoClassDefFoundError: aa/bb/DD
        at SOMEWHERE(unknown source)
Caused by: java.lang.ClassNotFoundException: aaa.bbb.CC
        at SOMEWHER(unknown source)
        ... 13 more

I’d like to see 13 more exceptions in this case. Is there an option to see all exception log?

  • 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-10T15:20:40+00:00Added an answer on June 10, 2026 at 3:20 pm

    You already see them, it’s only the ridiculous way Java (and Logback by defaul) prints exceptions by default. This stack trace:

    Exception in thread "main" java.lang.NoClassDefFoundError: aa/bb/DD
            at SOMEWHERE(unknown source)
    Caused by: java.lang.ClassNotFoundException: aaa.bbb.CC
            at SOMEWHER(unknown source)
            ... 13 more
    

    actually means the following program flow (from bottom to top):

    Caused by: java.lang.ClassNotFoundException: aaa.bbb.CC
            at SOMEWHER(unknown source)
    Exception in thread "main" java.lang.NoClassDefFoundError: aa/bb/DD
            at SOMEWHERE(unknown source)
    

    The ... 13 more (N common frames omitted in Logback) only means that these exceptions were already printed before. In Logback you can restructure stack track to avoid duplicates and print stack lines always in correct order, see my blog.

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

Sidebar

Related Questions

I have created a Java program which takes some command line arguments to run.
I was wondering how to run some JUnit4 test inside a java program. Basically
I'm currently writing a java program that requires some Data to run. The data
How to run java .class file from a script providing some command line parameters?
I'm able to run a program from the commmand line by typing java main
I need to run the Oracle EXP command through a Java program and print
I'm trying to get my java program to run an svn command from the
I am writing a java program that runs under unix. It would like run
Possible Duplicate: run shell command from java I want to export some variable so
I want to facilate my client to run java program through UNIX command prompt

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.