想让人注意到某个有用的答案?请投赞同票!

有没有人帮助到了你?有没有任何答案或用户使用技巧解决了你的问题?选择“赞同票”箭头投出你的赞同票。你的反馈能帮助到他人!

进一步了解在什么情况下投赞同票:了解投票 - Apple 社区

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.



发布日期 2024年5月10日 上午7:39

回复

没有回复。

Xcode 设置编译后运行java显示找不到class

欢迎来到 Apple 支持社区
Apple 客户在其产品方面互相帮助的论坛。使用你的 Apple ID 开始畅游其中吧!