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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:45:19+00:00 2026-05-26T20:45:19+00:00

What kind of java.lang.Error can be thrown during compile time ? I know one

  • 0

What kind of java.lang.Error can be thrown during compile time ?
I know one error: ClassFormatError. What are the others error?
I’m writing an application that acts as a server. The server can compile a java program. During compilation I don’t want to bring it down with any error, ensuring compilation. I have taken the necessarry steps that can prevent a compilation error.
I’m not sure with java.lang.Error, I can catch Throwable object and prevent it, but I need to know what are the error objects that can be thrown during compile time.

  • 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-26T20:45:20+00:00Added an answer on May 26, 2026 at 8:45 pm

    Errors thrown at compilation time (in the javac) occur when the compiler has an internal error. You can provide valid java code and the compiler can die. A common error I see is OutOfMemoryError when I compile a large code base but my IDE hasn’t given the compiler enough memory (the default in my IDE is 128 MB)

    ClassFormatError can occur when the compile tries to load a compiled class file which is corrupt.

    You don’t need to know all the error thrown, you can just catch Throwable. They should only be the result of very unusual event which are likely to be unrecoverable. All you can do is log the error and prevent the thread from dying.

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

Sidebar

Related Questions

I'm getting this compiler error in netbeans: incompatible types required: String found: java.lang.String I'm
Error Unable to start activity ComponentInfo: java.lang.IllegalStateException: System services not available to Activities before
I am kind of new to C (I have prior Java, C#, and some
I'm facing kind of a strange issue which is related MD5-Hashes in Java and
I was wondering if there was some kind of J tool in the java
I just started with Java and downloaded Netbeans, i kind of like it, but
I'm a .NET programmer doing some Hadoop work in Java and I'm kind of
At the moment, I have lot's of Java which does all kind of nifty
Environment: Android 2.3.3 with Google API I know this is kind of long, but
java.lang.VerifyError: (class: a method: parse signature: ()Z) Incompatible argument to function public boolean parse()

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.