cannot run a simple java code

前端 未结 5 1732
离开以前
离开以前 2021-01-22 11:45

I have downloaded a java developers kit for my 64bit windows 7, wrote down my code in the notepad, though the code is compiling from the command prompt and creating a .class fil

5条回答
  •  感动是毒
    2021-01-22 12:21

    You must provide with the code.

    Anyway, from the Java Docs, class ClassNotFoundException:

    Thrown when an application tries to load in a class through its string name using:

    • The forName method in class Class.
    • The findSystemClass method in class ClassLoader.
    • The loadClass method in class ClassLoader.

    but no definition for the class with the specified name could be found.

    Must read link : Tip: Causes of java.lang.ClassNotFoundException

提交回复
热议问题