This content has been marked as final.
Show 4 replies
-
1. Re: Could not initialize class sun.awt.X11GraphicsEnvironment
david.karr Jul 29, 2009 6:35 PM (in response to user11138293)Is this an admin server or a managed server started by NodeManager?
If it's an admin server, you can edit the "setDomainEnv.sh" or "startWebLogic.sh" script (I'm not sure which is best, or where in the script it's best to make this change) in the domain/bin directory.
If it's a managed server controlled by NodeManager, then go into the WebLogic admin console and edit the "Environment"->"Servers"->server definition, going to "General"->"Server Start", and edit the "Arguments" field.
Edited by: david.karr on Jul 29, 2009 11:34 AM -
2. Re: Could not initialize class sun.awt.X11GraphicsEnvironment
Olaf Heimburger-Oracle Jul 29, 2009 6:54 PM (in response to user11138293)You must specify -Djava.awt.headless=true in the setDomainEnv.sh file. This has nothing to do with Unix systems as this option is available on every platform.
--olaf -
3. Re: Could not initialize class sun.awt.X11GraphicsEnvironment
801156 Sep 21, 2011 12:05 AM (in response to Olaf Heimburger-Oracle)I am getting this error on my browser when I try to load my ADF application hosted on weblogic managed server. What do I do to fix this and where do i specify this parameter in which file? Can this be done from the console too? Do i need to restart the weblogic server after? -
4. Re: Could not initialize class sun.awt.X11GraphicsEnvironment
Olaf Heimburger-Oracle Sep 21, 2011 10:37 AM (in response to 801156)If you start the WLS server on the command line, set the JAVA_OPTIONS environment variable before starting the WLS Server.
Ie (on Unix/Linux):
export JAVA_OPTIONS=-Djava.awt.headless=true
./startWebLogic.sh
HTH,
--olaf