Can any one suggest me..
 When i am compling my program.I got the error as :

"": Error #: 2301 : internal compiler error: java.lang.NullPointerException

My program is littlebit bit big (1500 line). how to solve this problem ?

waiting for reply.
Who is Participating?
MoondancerConnect With a Mentor Commented:
21 questions remain open today, some date back to the year 2000.  I will close those I can today, and request that Asker attend to the rest as quickly as possible.

This question has been closed, 50 points refunded, asker found own solution; but never closed it.

Moondancer - EE Moderator
Look at the stack trace and see which line the exception occurs.
kapil009Author Commented:
Hi Yonqsinq
Error occurs in complation not while running the program.
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

A NullPointerException is thrown during runtime. It seems to be thrown by the compiler. Which compiler are you using?
Maybe this is a bug by your compiler. I suggest you to isolate the problem. Then, when you've isolated it, you can work-around it.

How to isolate it?

Comment out the half of your program and recompile it. (You should comment out in a way that you don't introduce compiler errors like missing methods, etc.) If the NullPointerException doesn't happen anymore, you know, the problem is inside the commented-out region. Repeat the steps still you have cornered the mysterious bug. If you work in small steps and methodically, you can find the bug of the compiler rather fast (less than a day).

A small hint: It is bad programming style to have a big class (I assume your "program" is a single, big class). It is better to split up your program into entities, into so called objects. If you have a single object with very large methods, then you are still programming in the old-fashioned procedure-oriented way.

I think, you wouldn't have had this problem this way.

Good luck!
An example on how to comment out:

You have a method

int countParsedStrings(String[] strings) {
    lots of code

Comment it out this way:

int countParsedStrings(String[] strings) {
    //lots of code
    return new String[] {};

Most editors have a command to comment out whole blocks. I configured JBuilder that on the press of Shift-Escape the current line is commented out or in. If I have a block selected, all lines of the blocks are commented out or in.
Ah, sorry, should be

return 0; // instead of return new String[] {}
Do U get the same error when using the javac command?
sometimes Vendors compiler like borland's Jbulider have lots (and that is an under statment) bug, most of them accurs after long hours, and booting your compiler might help, any way, using the javac command should not give u this error.
That's bullshit, dear friend yoavdo. JBuilder is an IDE, not a compiler. The problems you encountered can be memory problems. Buy more RAM. Software developing is resource-intensive...
kapil009Author Commented:
Thanx ..

I have used different complier and the problem solved.

Very well!

You can have this question deleted (ask Community Support), or you can give your points to one of us experts anyway because we looked at your problem and tried to help you. It's you who decides...
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101, Netminder, Mindphaser or I will return to finalize these as soon as possible if after 7 days no response by the Asker.  EXPERTS-->  please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.

*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link 
------> POINTS FOR EXPERTS awaiting comments are listed in the links below (Part 1) (Part 2)
Moderators will finalize this question if in @7 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
Thanks everyone.
Moderator @ Experts Exchange
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.