You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "Jana2Shata (via GitHub)" <gi...@apache.org> on 2023/03/12 16:25:35 UTC

[GitHub] [netbeans] Jana2Shata opened a new issue, #5656: Error: Could not find or load main class

Jana2Shata opened a new issue, #5656:
URL: https://github.com/apache/netbeans/issues/5656

   ### Apache NetBeans version
   
   Apache NetBeans 17
   
   ### What happened
   
   I used NetBEans on a previous Windows-enabled laptop, and it worked just fine. However, when I tried to install it on another Windows-enabled laptop too (using the absolute same steps), and created a new project (containig nothing but a "Hello World!" print statement), it keeps showing an error message when trying to run it: 
   Error: Could not find or load main class
   Command execution failed.
   
   And when trying to build it:
   No sources to compile
   
   I tried renaming the package, renaming the class, selecting the main class from properties and creating a new main class but none of that worked.
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 14
   
   ### Operating System
   
   Windows11
   
   ### JDK
   
   jdk1.8.0
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] Jana2Shata commented on issue #5656: Error: Could not find or load main class

Posted by "Jana2Shata (via GitHub)" <gi...@apache.org>.
Jana2Shata commented on issue #5656:
URL: https://github.com/apache/netbeans/issues/5656#issuecomment-1483850754

   First of all, thank you for helping!
   And yes, everything is as you mentioned.  However, it appeared to be a problem related to the path. I changed the default source folder location and it somehow worked perfectly.
   Again, thank you.
   
   احصل على Outlook for Android<https://aka.ms/AAb9ysg>
   ________________________________
   From: wwilsonn91 ***@***.***>
   Sent: Saturday, March 25, 2023 5:25:11 PM
   To: apache/netbeans ***@***.***>
   Cc: جنا موفق محمد شطا ***@***.***>; Author ***@***.***>
   Subject: Re: [apache/netbeans] Error: Could not find or load main class (Issue #5656)
   
    .تحذير: هذا البريد الإلكتروني مرسل لك من خارج جامعة أم القرى. لا تنقر فوق الروابط أو تفتح المرفقات أو تستجيب للطلبات ما لم تتعرف على المرسل وتعرف أن المحتوى آمن
   CAUTION:This email originated from outside of the UQU. Do not click links or open attachments or responding to information requests unless you recognize the sender and know the content is safe.
   
   I can't reproduce this myself.
   
   Did you structure the class correctly?
   Is the package properly declared?
   Is the "hello world" print instruction contained within a main method? ("public static void main(String[] args)" or "public static void main(String... args)"? Is such a method even declared?
   
   —
   Reply to this email directly, view it on GitHub<https://github.com/apache/netbeans/issues/5656#issuecomment-1483837085>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A4VTSUPEYJO63WLCK2KDHG3W5354PANCNFSM6AAAAAAVYGQLSA>.
   You are receiving this because you authored the thread.Message ID: ***@***.***>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] wwilsonn91 commented on issue #5656: Error: Could not find or load main class

Posted by "wwilsonn91 (via GitHub)" <gi...@apache.org>.
wwilsonn91 commented on issue #5656:
URL: https://github.com/apache/netbeans/issues/5656#issuecomment-1483837085

   I can't reproduce this myself.
   
   Did you structure the class correctly?
   Is the package properly declared?
   Is the "hello world" print instruction contained within a main method? ("public static void main(String[] args)" or "public static void main(String... args)"? Is such a method even declared?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] mbien closed issue #5656: Error: Could not find or load main class

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien closed issue #5656: Error: Could not find or load main class
URL: https://github.com/apache/netbeans/issues/5656


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists