Xcode 设置编译后运行java显示找不到class
下面来自:https://forums.developer.apple.com/forums/thread/751454
I wan't to use Java in Xcode the class file is Main.class. So I set scheme -> run to a script like this:
#!/bin/sh
java -cp $(dirname $0) Main
But when I run it, java said :
Error: Could not find or load main class Main
Caused by: java.lang.ClassNotFoundException: Main
How can I fix this problem?
And: It's really helpful to answer in Chinese if you know it.