Results 1 to 10 of 10
  1. #1
    jaminee is offline Member
    Join Date
    Jul 2010
    Posts
    7
    Rep Power
    0

    Default Need Some Help Please.

    Hy

    I wrote this code.

    That is run properly in Jcreator but not run in command line.

    Error come : Could not find the main class : Calculation. Program will exit.

    class Calculation {

    public static void main(String args[]) {
    System.out.println("Batting Average="+(34.0/94.0));
    }
    }

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Please show the contents of the command prompt window showing what you entered and the response. Also show the contents of the folder where the command was issued.
    There must be a .class file there.

  3. #3
    jaminee is offline Member
    Join Date
    Jul 2010
    Posts
    7
    Rep Power
    0

    Default How it is

    Please how to show the content?

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    To show the contents of a folder on Windows use the dir command.

  5. #5
    jaminee is offline Member
    Join Date
    Jul 2010
    Posts
    7
    Rep Power
    0

    Default

    Dear Please Tell me the Command how to show the content

  6. #6
    ojn
    ojn is offline Senior Member
    Join Date
    Aug 2008
    Location
    Stockholm, Sweden
    Posts
    119
    Rep Power
    0

    Default

    He. Just. Told. You.

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Are you asking how to copy the contents of the command window? Here's how:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.

  8. #8
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    Them durned windows command lines don't let you copy from them AT ALL though, so that might make things difficult (if the OP is using windows)

    the DIR cmd is useful (to reinforce the "He. Just. Told. You.)
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

  9. #9
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Read my post#7 about copying contents of command prompt window. It can be done.

  10. #10
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    Hmm, so it can. Though if I ever get bored enough to write my own OS (unlikely, but who knows) its command line will have a damned easier way to copy/paste (assuming it has a clipboard!)
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

Posting Permissions

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