You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did I do?
git clone the project.
execute make dist
build fails:
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/Sets
at com.google.devtools.j2objc.Options.(Options.java:128)
at com.google.devtools.j2objc.J2ObjC.main(J2ObjC.java:159)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Sets
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 2 more
This file should be empty. Otherwise, it moves Sets.java binary (several Set*.class files) into the wrong directory.
I can make a PR in order to resolve this issue. But before I want to know what's the actual reason for jarjar.rules?
How does it work here? What should I do right now?
My Macbook has M1 arch and I use this JAVA version.
15.0.2 (x86_64) "Oracle Corporation" - "Java SE 15.0.2" /Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/Contents/Home
The text was updated successfully, but these errors were encountered:
What did I do?
git clone the project.
execute
make dist
build fails:
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/Sets
at com.google.devtools.j2objc.Options.(Options.java:128)
at com.google.devtools.j2objc.J2ObjC.main(J2ObjC.java:159)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.Sets
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 2 more
I found that the problem is about the file https://github.com/google/j2objc/blob/master/translator/jarjar.rules
This file should be empty. Otherwise, it moves Sets.java binary (several Set*.class files) into the wrong directory.
I can make a PR in order to resolve this issue. But before I want to know what's the actual reason for jarjar.rules?
How does it work here? What should I do right now?
My Macbook has M1 arch and I use this JAVA version.
15.0.2 (x86_64) "Oracle Corporation" - "Java SE 15.0.2" /Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/Contents/Home
The text was updated successfully, but these errors were encountered: