1 | static S _javaCommand() { |
2 | try answer trim(loadTextFile(javaxDataDir("java-command.txt"))); |
3 | S javaHome = System.getProperty("java.home"); |
4 | if (nempty(javaHome)) { |
5 | File f = new File(javaHome); |
6 | f = oneOfTheFiles( |
7 | newFile(f, "bin", "java"), |
8 | newFile(f, "bin", "java.exe")); |
9 | if (f != null) ret platformQuote(f); |
10 | } |
11 | if (isOnPATH("java")) ret "java"; |
12 | fail("No java command found"); |
13 | } |
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: | 598 / 631 |
Version history: | 8 change(s) |
Referenced in: | [show references] |