Why am I getting java.awt.HeadlessException while launching loadtest commandline?

brawalbrawal Posts: 4
  • Loadtest has been installed in Linux machine
  • Create a loadtest script (ex. loadtestscript) to run the command line
  • using the following command to run the loadtest commandline
  • ./loadtest -cmd -run loadtestscript
  • Got an Error : java .awt.headlessException at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207


  • SergeiSergei Posts: 21

    Could you paste the entire console log with the exception stack trace and the Load Test version? I just checked a recent Load Test release on a machine that returns 'true' for the GraphicsEnvironment.isHeadless() Java call and runs without problems:

    [[email protected] 9.10.4]$ ./loadtest -cmd -run ../projects/run.cmd
    Parasoft Load Test
    ---------- Load Test ----------
    LoadTester stopped. [ Total Run Count = 1878; Failure Count = 0 ]

    Also what Linux are you running on?
    You could run either cat /etc/os-release or cat /etc/issue to get release info.

Sign In or Register to comment.