Libraryless. Click here for Pure Java version (6142L/36K).
1 | static Class hotwireCoreSpecialMainClass(S mainClassName, L<File> files) ctex { |
2 | // make class loader |
3 | JavaXClassLoader classLoader = hotwire_makeClassLoader(files); |
4 | |
5 | // load & return main class |
6 | Class<?> theClass = classLoader.loadClass(mainClassName); |
7 | |
8 | setOpt(theClass, "__javax", getJavaX()); |
9 | if (getOpt(theClass, "programID") == null) |
10 | setOpt(theClass, "programID", "#3999999"); |
11 | |
12 | if (!_inCore()) |
13 | hotwire_copyOver(theClass); |
14 | |
15 | ret theClass; |
16 | } |
Began life as a copy of #1003841
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034060 |
Snippet name: | hotwireCoreSpecialMainClass - direct hotwire from .jar/classes dir |
Eternal ID of this version: | #1034060/1 |
Text MD5: | 2b4948cde78d611036cb76872eac93c6 |
Transpilation MD5: | fe6a725cfd2dfffbe5b9a18e8c04233f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-19 23:30:57 |
Source code size: | 485 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 126 / 182 |
Referenced in: | [show references] |