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

18
LINES

< > BotCompany Repo | #1003939 // Compile RSTAUI

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

Libraryless. Click here for Pure Java version (5303L/35K/120K).

!7

p {
  O j = getJavaX();
  File srcDir = new File("/home/stefan/dev/RSTAUI-master/src/main/java");
  L<File> libraries = ll(loadLibrary(#1013041));
  File classesDir = getProgramFile("classes");
  set(j, "javaTarget", "1.6");
  S compilerOutput = cast call(j, "compileJava", srcDir, libraries, classesDir);
  if (nempty(compilerOutput))
    print("Compiler said: " + quote(compilerOutput));
  print(classesDir.getAbsolutePath());
  File jarFile = getProgramFile("rstaui.jar");
  dir2zip_recurse(classesDir, jarFile);
  print(jarFile.getAbsolutePath() + " - " + jarFile.length());
  if (jarFile.length() <= 22)
    print("oops - empty jar!?");
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003939
Snippet name: Compile RSTAUI
Eternal ID of this version: #1003939/3
Text MD5: 36c61c417b82b3ca7033603554dab64f
Transpilation MD5: 0b2705c729548f216550ecc346797c06
Author: stefan
Category: javax / talking robots
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-22 15:38:23
Source code size: 664 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 544 / 624
Version history: 2 change(s)
Referenced in: #1004005 - compileWholeDir - compile a whole directory (+subdirectories) of .java files
#1004006 - Compile all java files in current directory to "classes"