j2objc转换为Objective C时出错

时间:2015-10-07 08:48:47

标签: java android code-translation j2objc

我需要将Android源转换为Objective C

但它显示错误:

java -Xbootclasspath:$J2OBJC_HOME/lib/jre_emul.jar -jar $J2OBJC_HOME/lib/j2objc.jar j2objcc

Invalid layout of java.lang.String at value

#

# A fatal error has been detected by the Java Runtime Environment:

#

#  Internal Error (javaClasses.cpp:127), pid=575, tid=4867

#  fatal error: Invalid layout of preloaded class

#

# JRE version:  (8.0_51-b16) (build )

# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode bsd-amd64 compressed oops)

# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

#

# An error report file with more information is saved as:

# /Users/emaar/AndroidStudioProjects/TestBuild/app/src/main/java/com/emaar/app/testbuild/hs_err_pid575.log

#

# If you would like to submit a bug report, please visit:

#   http://bugreport.java.com/bugreport/crash.jsp

#

Abort trap: 6

任何设置(JDK 8,Maven,SDK,Android Studio,Gradle,J2OBJC,......)

如何解决?

1 个答案:

答案 0 :(得分:1)

“j2objcc”不是Java源文件。如果在没有它的情况下运行命令,将显示j2objc的有效用法和标志。