Download Jar. Libraryless. Click here for Pure Java version (11983L/84K).
!7 mainClassName DaMain p { try { File jar = getMainJarLocation(); print("DaMain 2. " + f2s(jar)); S struct = loadMandatoryTextFileFromZip(jar, "start.struct"); print(+struct); setDefaultClassFinder(func(S name) -> Class { try Class c = findClass_fullName(name); if (startsWith(name, "main$")) try Class c = findClass_fullName("DaMain" + substring(name, 4)); null; }); Standalone_OSWithSplashScreens s = cast unstructure(struct); print("Unstructured."); printStruct(s); printStruct(+args); s.run(args); } catch e { print(getStackTrace_noRecord(e)); } }
Began life as a copy of #1024623
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025015 |
| Snippet name: | Generic Standalone Runner (for packageProgram) |
| Eternal ID of this version: | #1025015/19 |
| Text MD5: | 050175dbce03acddd98df7d3e600057c |
| Transpilation MD5: | 2f7c0947c5d5f94198e6c8244729616f |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-09-01 13:21:50 |
| Source code size: | 649 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 621 / 2138 |
| Version history: | 18 change(s) |
| Referenced in: | [show references] |