Results 1 to 3 of 3
  1. #1
    akshay88 is offline Member
    Join Date
    Jan 2017
    Posts
    1
    Rep Power
    0

    Default Programs are not running

    Hello,

    I just update my jvm an since then I am not able run any program. I am getting an error 'Error: Could not find or load main class [class name]'.

    What can be the way out?

    Thanks.

  2. #2
    asdfg is offline Senior Member
    Join Date
    Nov 2016
    Posts
    163
    Rep Power
    4

    Default Re: Programs are not running

    It lacks of major method in your class.
    Java Code:
    public static void main(String[] args)
    Or click run configurations-Main
    Main-class label. After packageName.WriteYourClassNameYouWantToRun

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Programs are not running

    How are you running your code?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Running Programs through Java
    By AlexGraal in forum New To Java
    Replies: 24
    Last Post: 03-31-2014, 06:38 PM
  2. Need help with running programs in eclipse
    By HelloWorld1234 in forum New To Java
    Replies: 5
    Last Post: 06-12-2012, 04:49 PM
  3. Running Java programs in windows 7
    By jonytek in forum New To Java
    Replies: 1
    Last Post: 02-09-2011, 05:45 AM
  4. Running 3 Java programs in sequence.
    By loktamu in forum New To Java
    Replies: 2
    Last Post: 11-23-2008, 07:50 PM
  5. Problem in running java programs
    By aravind in forum New To Java
    Replies: 0
    Last Post: 07-14-2008, 12:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •