Wrote /root/JavaX-Caches/tmp_1037893252/main.java - 1487 bytes (written=1487, should be 1487) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_975718056 /root/JavaX-Caches/tmp_1037893252/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_1037893252/main.java:6: error: cannot find symbol static java.io.File newFile(File base, String path) { ^ symbol: class File location: class virtual /root/JavaX-Caches/tmp_1037893252/main.java:26: error: cannot find symbol static java.io.FileInputStream newFileInputStream(File path) throws java.io.IOException { ^ symbol: class File location: class virtual /root/JavaX-Caches/tmp_1037893252/main.java:30: error: cannot find symbol static java.io.FileOutputStream newFileOutputStream(File path) throws java.io.IOException { ^ symbol: class File location: class virtual /root/JavaX-Caches/tmp_1037893252/main.java:43: error: cannot find symbol static File rebase(File file) { ^ symbol: class File location: class virtual /root/JavaX-Caches/tmp_1037893252/main.java:43: error: cannot find symbol static File rebase(File file) { ^ symbol: class File location: class virtual /root/JavaX-Caches/tmp_1037893252/main.java:3: error: reference to rebase is ambiguous return new java.io.File(rebase(path)); ^ both method rebase(String) in virtual and method rebase(File) in virtual match /root/JavaX-Caches/tmp_1037893252/main.java:11: error: reference to rebase is ambiguous return new java.io.File(rebase(base), path); ^ both method rebase(String) in virtual and method rebase(File) in virtual match /root/JavaX-Caches/tmp_1037893252/main.java:15: error: reference to rebase is ambiguous return new java.io.FileInputStream(rebase(path)); ^ both method rebase(String) in virtual and method rebase(File) in virtual match /root/JavaX-Caches/tmp_1037893252/main.java:19: error: reference to rebase is ambiguous return new java.io.FileOutputStream(rebase(path)); ^ both method rebase(String) in virtual and method rebase(File) in virtual match /root/JavaX-Caches/tmp_1037893252/main.java:23: error: reference to rebase is ambiguous return new java.io.FileOutputStream(rebase(path), append); ^ both method rebase(String) in virtual and method rebase(File) in virtual match /root/JavaX-Caches/tmp_1037893252/main.java:37: error: cannot find symbol if (new File(path).isAbsolute()) ^ symbol: class File location: class virtual /root/JavaX-Caches/tmp_1037893252/main.java:40: error: cannot find symbol return new File(new File(virtual_baseDir), path).getAbsolutePath(); ^ symbol: class File location: class virtual /root/JavaX-Caches/tmp_1037893252/main.java:40: error: cannot find symbol return new File(new File(virtual_baseDir), path).getAbsolutePath(); ^ symbol: class File location: class virtual /root/JavaX-Caches/tmp_1037893252/main.java:44: error: cannot find symbol return new File(rebase(file.getPath())); ^ symbol: class File location: class virtual 14 errors