Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
main(String[]) : void in main class と記述して Eclipse で hello world コードを実行しようとしましたが、エラー: メイン クラス main(String[]) : void が見つからないかロードできませんでした。
あなたが提供したのは、Java プログラムの壊れた断片にすぎません。クラスを完全に定義していません。最も基本的な Java プログラムは次のようになります。
public class filename{ public static void main(String[] args){ System.out.println("Hello, World!"); } }
これは、すべてのプロジェクトで最低限必要なものとして使用し、Oracle の Java ドキュメントを参照してください。