Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Changing java.awt.headless system property

843798Mar 7 2006 — edited Nov 6 2007
Hello

I am trying to set
java.awt.headless
property to true. However, everytime I try to do this, it brings me back to "usage" of the JAVA command. I am using the following command at the command prompt

$ java.exe "-Djava.awt.headless=true"

I am on a Mac_ OSX and connected through SSH. Following is my system
sw_vers
ProductName: Mac OS X Server
ProductVersion: 10.3.8
BuildVersion: 7U16
----------------------------------
Following is the java version i am using
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141.4)
Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode)
----------------------------------

Also is there any command that i can run that would show me whether the
java.awt.headless
property is currently true or false

Would really appreciate some help. Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2007
Added on Mar 7 2006
2 comments
587 views