I am trying to run a JFreeChart application on an AS400 system with WebSphere 6, JDK 1.4. I have tried several methods of setting the system to run in headless mode. In the past (on other unix systems) I had no problems simply putting the following line into my code:
Code: Select all
System.setProperty( "java.awt.headless", "true" );
When I try to run the application with this, I just get an error message saying that I am trying to access AWT without setting
java.awt.headless=true or
os400.awt.native=true. I then tried setting the
os400.awt.native property to
true, but still no change.
I then took advice from another thread to add the arguement
-Djava.awt.headless=true to my JVM properties in Websphere. When trying to restart the application server, I get an error saying:
Code: Select all
Warning: Java property configuration java.awt.headless=true overrides conflicting Java property configuration os400.awt.native=false.
Unable to create Java Virtual Machine.
Has anyone encountered this problem before? Any thoughts or advice would be greatly appreciated.
Spyder