Пишу компилятор для Android, используя ECJ, и тут вот такая ошибка:
Compilation failed
Output:
Errors:
----------
1. ERROR in /data/data/org.ecjjavactest/files/Test.java (at line 1)
public class Test {
^
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
----------
2. ERROR in /data/data/org.ecjjavactest/files/Test.java (at line 1)
public class Test {
^
The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
----------
3. ERROR in /data/data/org.ecjjavactest/files/Test.java (at line 1)
public class Test {
^^^^
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
----------
4. ERROR in /data/data/org.ecjjavactest/files/Test.java (at line 2)
public static void main(String[] args) {
^^^^^^
String cannot be resolved to a type
----------
5. ERROR in /data/data/org.ecjjavactest/files/Test.java (at line 3)
System.out.println("Hello, compiled world!");
^^^^^^
System cannot be resolved
----------
5 problems (5 errors)
Compilation failed.
Попробовал добавить все классы java в classpath, но не пофиксилось. Прочитав ошибки я понял, что я ничего не понял...