static boolean isJavaCompilable(String text) ctex { Class javax = getJavaX(); File srcDir = (File) call(javax, "TempDirMaker_make"); saveTextFile(new File(srcDir, "main.java").getPath(), text); File classesDir = (File) call(javax, "TempDirMaker_make"); new List<File> libraries; try { call(javax, "compileJava", srcDir, libraries, classesDir); return true; } catch (Exception e) { return false; } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000888 |
Snippet name: | isJavaCompilable |
Eternal ID of this version: | #1000888/1 |
Text MD5: | 3fff02a6ecb04f65c20c5c1ab2d8e22d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-10-30 19:45:15 |
Source code size: | 440 bytes / 14 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 625 / 1050 |
Referenced in: | [show references] |