Netbeans Unexpected Exceptind Error

Posted on 2006-04-21
Last Modified: 2010-03-31

Hi Experts,

I am using W2K3 Server and NetBeans IDE 5.0 ,

Netbeans Unexpected Exceptend Error and ;

when I run programme (Run Main Project) programme cannot run  but File rigt click Run File programme run.

How can I run to project without netbeans unexpected exceptend error


Question by:elmakarge
    LVL 16

    Accepted Solution

    As far as my experiences on NetBeans, it never happens. Here is some alternative that you can do.

    1. Try to re-install the NetBeans.
    2. Check whether you have the appropriate JDK
    3. if both do not work. Please let us know what exception does it report?

    LVL 8

    Assisted Solution

    If Netbeans is not launching the application, then you must have the mapping between netbeans and your J2EE server incforrectly setup.

    In the runtime view, make sure that your destination server is listed under the 'servers' tree. If it isnt, right click and add your server. You'll also have to map your application to the particular server.

    If this is all setup ok, try manually starting up your test server - does it start ok? Can you manually start it then get Netbeans to deploy the application for you?

    If all else fails, hit shift+F11 to compile and package it all, This will place the deployable WAR/EAR file in the 'dist' directory of your application (at the top levle). You can then manually try deploying the application.

    LVL 30

    Assisted Solution

    >> the mapping between netbeans and your J2EE server incforrectly setup.
    >> This will place the deployable WAR/EAR file

    Where was it mentioned that a J2EE application is being executed on a server?

    >> I am using W2K3 Server

    I guess that's for Windows 2003 Server operating system and not some J2EE server....
    LVL 8

    Expert Comment

    Sorry, this was an assumption.

    With posts that say something liike "when I run programme (Run Main Project) programme cannot run  but File rigt click Run File programme run.", then assuming some details is all you can do. Unless you've got a crystal ball ... ?

    LVL 30

    Expert Comment

    Well, taking it at face value, it looks like just a simple main () program which is not running. I wouldn't guess beyond that. For guessing beyond as to whether there is an EJB or a JSP or a JSF or a Servlet or JMS or a web-service or anything else, I'd probably need a crystal ball ;)

    elmakarge, can you tell us what are the details of the Unexpected Exception, can you copy-paste it?

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now