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

4
LINES

< > BotCompany Repo | #1016754 // getMainJarLocation - for running program. may also return a directory

JavaX fragment (include)

static File getMainJarLocation() ctex {
  Class c = or(javax(), mc());
  ret new File(c.getProtectionDomain().getCodeSource().getLocation().toURI());
}

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: #1016754
Snippet name: getMainJarLocation - for running program. may also return a directory
Eternal ID of this version: #1016754/5
Text MD5: c57e97dcd6d89e8e96794096a77abbf9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-24 19:37:32
Source code size: 154 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 338 / 395
Version history: 4 change(s)
Referenced in: [show references]