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

8
LINES

< > BotCompany Repo | #1015927 // jdkSrcZip

JavaX fragment (include)

1  
static File jdkSrcZip() {
2  
  File jdkLocation = new File(getSystemProperty("java.home"));
3  
  if (eqic(jdkLocation.getName(), "jre")) // get our of jre subdir
4  
    jdkLocation = parentFile(jdkLocation);
5  
  ret oneOfTheFiles(
6  
    newFile(jdkLocation, "src.zip"),
7  
    newFile(jdkLocation, "lib/src.zip")); // JDK 10
8  
}

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: #1015927
Snippet name: jdkSrcZip
Eternal ID of this version: #1015927/2
Text MD5: 7f3a5cc250b3f219ede457653338f970
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-10 22:59:46
Source code size: 317 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 436 / 459
Version history: 1 change(s)
Referenced in: [show references]