I getting this error in unix. Google suggested that I should set this property. -Djava.awt.headless=true I am running weblogic , please help where can I specify thsi property which filw is it user properties or weblogic specific?
You set headless to true when Jre cannot get the graphics initialized in the environment in which your application is running. The abstract Windows toolkit requires that. It needs to be set on the console.
Aren't you accessing your application via a web browser, you are using weblogic, right?
You set it on the command line, or more commonly in the start script that starts your weblogic server. We can't help you with the specifics, because you have not told us which flavour of UNIX you use.
Also, consider unsetting the DISPLAY variable, to avoid your server attaching to the local X11 display or a ssh forwarded display.
-Djava.awt.headless=true is a JVM parameter, so it would go into the "java" command that runs WebLogic. You might ask in the WebLogic forum how to set it. Or look at WebLogic's startup script to see where it reads its JVM parameters from.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
You set it on the command line, or more commonly in the start script that starts your weblogic server. We can't help you with the specifics, because you have not told us which flavour of UNIX you use.
Also, consider unsetting the DISPLAY variable, to avoid your server attaching to the local X11 display or a ssh forwarded display.