我正在尝试运行一个简单的 java 测试代码。我得到一个“无法找到或加载主类文件”(类似的东西)
我正在关注的教程使用此命令
-> javac name.java (javac doesn't work, using ->java ..)
-> dir (shows the classname as a file)
> java classname
> outputs "hello world"
我似乎无法通过 ->java running.java
class apples //everything begins with a class - need this to do anything
{
public static void main(String args[])//method
{
System.out.println("Hello World");
}
}