Results 1 to 10 of 10
- 11-15-2010, 07:19 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
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
- 11-15-2010, 07:19 PM #2
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
oh, and by pure java, I mean that there are no libraries, just jdk stuff.
- 11-15-2010, 07:54 PM #3
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!
- 11-15-2010, 08:15 PM #4
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
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.
- 11-15-2010, 08:18 PM #5
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
Java Web Start also freezes when launching any of the demos on download.oracle.com/javase/tutorial/uiswing/examples/components/index.html.
- 11-15-2010, 08:21 PM #6
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
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.
- 11-16-2010, 05:48 AM #7
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
- 11-16-2010, 02:45 PM #8
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
@Darryl.Burke I did that once and it didn't work, but tried again and it did. It's working for now. thanks.
- 11-16-2010, 05:52 PM #9
Happy to know it helped, and you're welcome.
db
- 11-16-2010, 06:25 PM #10
Member
- Join Date
- Nov 2010
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
Launch Java application with root privileges from gnome desktop shortcut.
By IYIaster in forum New To JavaReplies: 1Last Post: 05-17-2010, 09:03 PM -
Passing screen resolution parameters at the launch time of the application!
By Y. Progammer in forum New To JavaReplies: 4Last Post: 03-12-2010, 05:57 PM -
Dr Java compiler error "This application requires a Java Runtime Environment 1.5.0"
By applewood13 in forum New To JavaReplies: 8Last Post: 12-30-2009, 11:40 AM -
error runing a java application
By samjesse in forum Java AppletsReplies: 5Last Post: 11-05-2009, 03:44 AM -
Launch Error
By roughjj in forum EclipseReplies: 1Last Post: 10-30-2009, 07:59 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks