I'm trying to convert some of my Android project logic files into objectiveC code with j2objc tool.
I get a lot of type errors with my actual project, so I'm trying to convert at least helloworld, e.g.:
public class Test {
public static void main(String args[]) {
System.out.println("Hello");
}
}
This can be compiled perfectly using javac
, however when I try to run j2objc
on it, it returns bizzare errors:
The type java.lang.Object can not be resolved. It is indirectly referenced from required .class files.
What is the issue here, and most importantly, what should I do with this?
Edit:
Command line as follows:
j2objc -sourcepath src/main/java src/main/java/org/takino/mtga/impl/datatypes/*java
Environment:
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home
(this was returned by /usr/libexec/java_home
)