Java | Ubuntu 8.04 | java.awt.HeadlessException
Hello
I have an Ubuntu 8.04 machine running tomcat 5.5, and a java application which is showing an error : Code:
An error occurred: Gnome / Xserver is installed and the DISPLAY variable is set to localhost:0. My Questions are as follows - 1 - With this error, does it mean java is running in headless mode? If so, should headless mode not be set to false since a full graphical desktop environment is present? 2 - How do I actually change this 'headless' mode of java to false? The version of java installed is below : Code:
java version "1.6.0_07" |
Quote:
Have you checked the Tomcat logs? |
Quote:
Code:
import javax.swing.JOptionPane; Nope. If you are manually setting your code to headless, as I did above, it will crash. You could make a check to see if the environment is Headless before setting the properties 2 - How do I actually change this 'headless' mode of java to false? Check my suggestion above. Since you said you only get that exception in one part of the program, check what it is doing at that moment. Time to set some breakpoints maybe? :) Off-topic note: I love to play with Akuma. Don't particularly like playing against him though :) |
Thanks for the replies.
I await a reply from the author of the Java app (my role in this was to set up the server to host this app, my knowledge of java coding is poor). I'll post back if we get it working. Off-topic note :Good taste Mega Man X, can't wait for sf4! :) |
All times are GMT -5. The time now is 10:17 PM. |