Results 1 to 10 of 10
  1. #1
    javaguy78 is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default Java Application fails to launch without error

    I am writing a pure java swing application in Netbeans 6.9.1. The application has been working fine for the past few days when I run it and debug, whatnot, but today (and I've seen this before, but it resolved itself), I'm getting strange behavior.

    I can compile my application and package it in a jar, and run the jar on any computer, but on this one computer, it fails to launch.

    My problem computer is windows 7 with JRE and JDK 6 update 22 installed, I've removed all JREs and JDKs and even reinstalled, I have restarted the computer and I've done almost everything else I can think of, but the application won't launch.

    When I run java -jar application.jar: The frame of the main container is drawn, but nothing is drawn within the frame, java.exe (and javaw.exe) both run at about 34% processor usage. No exceptions are displayed in the console, and when I debug, the application, it gets to loading the frame and then jumps into Thread.exit() (private).

    I know it's not a problem with the actual application because the exact same jar runs fine on another computer, the java runtime simply freezes and does nothing. I'm lost and kinda up a creek since I can't work on my application unless I can run/debug it, and I really don't want to reload my pc. any help would be appreciated

  2. #2
    javaguy78 is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default

    oh, and by pure java, I mean that there are no libraries, just jdk stuff.

  3. #3
    berkeleybross's Avatar
    berkeleybross is offline Senior Member
    Join Date
    Feb 2010
    Location
    England
    Posts
    187
    Rep Power
    5

    Default

    Asking the obvious, does it work properly with other java programs?

    You may want to try and find *exactly* where it stops - using the old fashioned method of System.out.println("line x");

    Other than that, i cant help much.
    Wishing you luck!

  4. #4
    javaguy78 is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default

    I know it's got nothing to do with my application. I can launch any jar and it does the same thing. I went to JavaBoutique and downloaded several of their applications (javaboutique.internet.com/applications) and all their applications do the same thing. It's gotta be something with Java on my computer, but I just don't know where to look.

    I've been all over google and here, but haven't yet found any solution or someone else describing the problem i've got.

  5. #5
    javaguy78 is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default

    Java Web Start also freezes when launching any of the demos on download.oracle.com/javase/tutorial/uiswing/examples/components/index.html.

  6. #6
    javaguy78 is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default

    The only feedback I get from windows is an error in the application event log that reads "the program javaw.exe version 6.0.220.4 stopped interacting with windows and was closed." the message is generated when I close the hanged app and windows asks me if I want to wait or want to force it to close.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    Try uninstalling both the JDK and the JRE and then download and install the latest update (6u22?)

    edit Also run Windows Update, select "Custom" and install any hardware/graphics drivers that might be available.

    db

  8. #8
    javaguy78 is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default

    @Darryl.Burke I did that once and it didn't work, but tried again and it did. It's working for now. thanks.

  9. #9
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    Happy to know it helped, and you're welcome.

    db

  10. #10
    javaguy78 is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default

    must be my computer. I just ran my program and it worked fine. Closed it, made zero changes to the jar, tried to launch again, same problem.

    Grr.. ohwell, sorry to bother you guys.

Similar Threads

  1. Replies: 1
    Last Post: 05-17-2010, 09:03 PM
  2. Replies: 4
    Last Post: 03-12-2010, 05:57 PM
  3. Replies: 8
    Last Post: 12-30-2009, 11:40 AM
  4. error runing a java application
    By samjesse in forum Java Applets
    Replies: 5
    Last Post: 11-05-2009, 03:44 AM
  5. Launch Error
    By roughjj in forum Eclipse
    Replies: 1
    Last Post: 10-30-2009, 07:59 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •