Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1011289 // Add "Headless" to Global JavaX Options

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (4017L/25K/89K).

!7

p {
  S s = javaxDefaultVMArgs(), old = s;
  print("Default VM Args: " + quote(s));
  if (!s.contains("-Djava.awt.headless=true")) s = trim(s + " -Djava.awt.headless=true");
  if (neq(old, s))
    setDefaultVMArgs(s);
  else
    print("Keeping.");
}

Author comment

Began life as a copy of #1011264

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011289
Snippet name: Add "Headless" to Global JavaX Options
Eternal ID of this version: #1011289/1
Text MD5: 6ca3c608042158a5b1cd3c417edf3aec
Transpilation MD5: a171fe5e54d68911636fcba0f1f41aab
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-22 04:24:21
Source code size: 263 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 344 / 445
Referenced in: [show references]