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

22
LINES

< > BotCompany Repo | #1019271 // Java CEF Test (embedded Chrome browser, Linux 64) [seems to work]

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

Download Jar. Libraryless. Click here for Pure Java version (8166L/51K).

!7

p {
  File finalDir = javaxCodeDir("Chromium");
  File temp = javaxCodeDir("Unpacking Chromium");
  if (!fileExists(newFile(finalDir, "linux64"))) {
    unzipSnippet(#1400144, temp);
    for (File f : findAllFiles_noDirs(temp))
      if (fileHasExtension(f, ".so") || eqOneOf(f.getName(), "jcef_helper", "chrome-sandbox", "run.sh"))
        makeExecutable(f);
    renameFile(temp, finalDir);
  }
  pcall {
    File jdkBinDir = newFile(envJavaHome(), "bin");
    for (S name : ll("icudtl.dat", "natives_blob.bin", "snapshot_blob.bin"))
      makeSymLinkIfDoesntExist(newFile(jdkBinDir, name), newFile(finalDir, "linux64/bin/lib/linux64/" + name));
  }
  File runner = newFile(finalDir, "linux64/run2.sh");
  saveTextFile(runner, "cd " + bashQuote(dirOfFile(runner)) + [[; ./run.sh "$@"]]);
  makeExecutable(runner);
  nohup(f2s(runner) + " https://botcompany.de");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1019271
Snippet name: Java CEF Test (embedded Chrome browser, Linux 64) [seems to work]
Eternal ID of this version: #1019271/24
Text MD5: 58b4cec2a177d4be9ced2cb79e6d30a4
Transpilation MD5: 1eee9ac47698e243a468729c35cf1bf7
Author: stefan
Category: javax / browser
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-08 01:04:47
Source code size: 890 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 466 / 1297
Version history: 23 change(s)
Referenced in: