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

16
LINES

< > BotCompany Repo | #1000573 // Run program and upload output as NT snippet (developing)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1724L/14K/42K).

1  
!747
2  
3  
main {
4  
  static String programID;
5  
  
6  
  psvm {
7  
    String demoProgID = "#1000414"; // Hello world
8  
    if (args.length == 0) args = new String[] {demoProgID};
9  
    
10  
    _javax.runMainInProcess = false;
11  
    _javax.main(args);
12  
    String text = _javax.lastOutput;
13  
    if (!text.isEmpty())
14  
      ntUpload("Program runner (" + programID + ")", "Output of: " + join(" ", args), text);
15  
  }
16  
}

Author comment

Began life as a copy of #1000452

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1000573
Snippet name: Run program and upload output as NT snippet (developing)
Eternal ID of this version: #1000573/1
Text MD5: bb5ae08d3e406c4319d768714f8ea97d
Transpilation MD5: b12c3c2b8734852e313fba63d3117058
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-30 17:07:57
Source code size: 403 bytes / 16 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 741 / 774
Referenced in: [show references]