static S _javaCommand() { try answer trim(loadTextFile(javaxDataDir("java-command.txt"))); S javaHome = System.getProperty("java.home"); if (nempty(javaHome)) { File f = new File(javaHome); f = oneOfTheFiles( newFile(f, "bin", "java"), newFile(f, "bin", "java.exe")); if (f != null) ret platformQuote(f); } if (isOnPATH("java")) ret "java"; fail("No java command found"); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016227 |
Snippet name: | _javaCommand |
Eternal ID of this version: | #1016227/9 |
Text MD5: | 8ab29d07841a0f72edc119562e3e6d5d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-01 15:49:20 |
Source code size: | 421 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 559 / 590 |
Version history: | 8 change(s) |
Referenced in: | [show references] |