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).

!747

main {
  static String programID;
  
  psvm {
    String demoProgID = "#1000414"; // Hello world
    if (args.length == 0) args = new String[] {demoProgID};
    
    _javax.runMainInProcess = false;
    _javax.main(args);
    String text = _javax.lastOutput;
    if (!text.isEmpty())
      ntUpload("Program runner (" + programID + ")", "Output of: " + join(" ", args), text);
  }
}

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: 682 / 696
Referenced in: [show references]