I have fulfilled the requirements for installing j2objc on my mac as follows:
Apple macOC Catalina Version 10.15.7
Xcode Version 12.2 (12B45b)
JDK 1.8 installed - JAVA_HOME=`/usr/libexec/java_home -v 1.8`
JDK 11 installed
/Users/userName/Downloads/apache-maven-3.6.3" installed
Xcode command line tools installed
J2OBJC_HOME=/Users/userName/J2objc
J2ObjC project successfully cloned
libprotoc 3.14.0 installed
In the terminal I cd to j2objc directory and run make dist. This process appears to be never-ending, in fact, I have noticed the compile command is duplicated many times. I let it run for nearly an hour but it never comes to an end. Equally, when running other make commands the result is the same.
I have tried compiling a text java object with the following command:
$ j2objc javaTest.java
and this results in the following error message:
Exception in thread "main" com.sun.tools.javac.util.FatalError: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
I have also tried to open and run the HelloSwift app in Xcode but although it compiles successfully the Simulator does not start. I did specify the J2OBJC_ARCHS as specified in the instructions.
I guess I am missing something or have not understood the instructions. Any help would be much appreciated.