Tips 24 : Netbeans mesej keluar No main class found

Sebenarnya masalah ini berpunca dari pelbagai masalah.

Salah satunya ialah Nama Folder pelajar mengandungi character yang dilarang seperti dibawah

  • Tilde (~)
  • Number sign (#)
  • Percent (%)
  • Ampersand (&)
  • Asterisk (*)
  • Braces ({ })
  • Backslash (\)
  • Colon (:)
  • Angle brackets (< >)
  • Question mark (?)
  • Slash (/)
  • Plus sign (+)
  • Pipe (|)
  • Quotation mark (“)

Sebab lain : Terdapat banyak main file….and perlu main file yang anda kehendaki dengan mengikut arahan di bawah

  1. Right click on your project name in the project explorer
  2. Click on properties
  3. Click on Run
  4. Make sure your Main Class is the one you want to be the entry point.  Or click browse button to select main class.
  5. Click OK.
  6. Run Project
This entry was posted in Berita Utama. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *