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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
A NullPointerException is thrown during runtime. It seems to be thrown by the compiler. Which compiler are you using?
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.