Page 2 of 2 FirstFirst 12
Results 21 to 30 of 30
  1. #21
    MaceMan is offline Member
    Join Date
    Mar 2011
    Posts
    45
    Rep Power
    0

    Default

    I screwed up big time! I deleted a file that I thought was not needed, and now I get this when I run my files:

    javac: directory not found: C:\Users\(my name goes here)\Documents\JCreator LE\MyProjects\Problem7.1\Payment7.1\classes
    Usage: javac <options> <source files>
    use -help for a list of possible options

    Process completed.

    I am really mad at my self right now, because all my work is now shot. Is there anyway I can restore those files?
    When in doubt, use a lightsaber

  2. #22
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

    Default

    Have you heard of Recuva? It is quite a good and robust file restore.

  3. #23
    MaceMan is offline Member
    Join Date
    Mar 2011
    Posts
    45
    Rep Power
    0

    Default

    That might help, only problem is, I don't even know what file I deleted caused the compiler to give this error message!!
    I guess I would have to restore them all, and slowly delete as I go.
    You guys have probably done this thing before, so you understand how infuriating it can be. Thanks for he help.
    When in doubt, use a lightsaber

  4. #24
    MaceMan is offline Member
    Join Date
    Mar 2011
    Posts
    45
    Rep Power
    0

    Default

    Good news guys, I created some new files with some easyer to remember names, and then copy and pasted. It works now, no errors, except for a run-time-logic error.
    I use the same driver, and when I run Payment, it says that:

    Fatal error: creating an illegal payment.
    Fatal error: creating an illegal payment.
    Cash 1 details:
    The payment amount is 50.5

    Cash 2 details:
    The payment amount is 20.50

    So my question is, how can it be a illegal payment, if it outputs the cash payment amount just fine?
    When in doubt, use a lightsaber

  5. #25
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    Which bit of your code is throwing that problem?

  6. #26
    MaceMan is offline Member
    Join Date
    Mar 2011
    Posts
    45
    Rep Power
    0

    Default

    I am guessing it is the file CashPayment, because that is where I coded the error message. I want, "Fatal error: creating an illegal payment", to output when amount is less than 0. The amount is 50.5 and 20.5, so I don't understand why that error is outputing.
    When in doubt, use a lightsaber

  7. #27
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    I can't see that in the listings you've given.
    I would suggest that you need to stick some debug code in there to see what value it thinks is illegal.

  8. #28
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

    Default

    Yeah try using the integrated debugger, or for simpler debugging, use some System.out.println()'s

  9. #29
    MaceMan is offline Member
    Join Date
    Mar 2011
    Posts
    45
    Rep Power
    0

    Default

    Okay, I just wanted to say thanks for all your guys helps, and I found the last error, it was a semicolon after an if statement that was throwing the compiler off. All work now.
    Thanks!
    When in doubt, use a lightsaber

  10. #30
    milovan is online now Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    296
    Rep Power
    4

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Inheritance Problem
    By kazumahits in forum New To Java
    Replies: 5
    Last Post: 01-11-2011, 03:46 PM
  2. Wierd problem with abstract and extends
    By g123456 in forum New To Java
    Replies: 6
    Last Post: 05-14-2010, 06:25 PM
  3. Inheritance Problem
    By g2beastie in forum New To Java
    Replies: 4
    Last Post: 03-25-2010, 08:23 PM
  4. inheritance problem
    By er1c550n20 in forum New To Java
    Replies: 2
    Last Post: 03-10-2010, 06:01 PM
  5. Problem with Inheritance
    By KronikAlkoholik in forum New To Java
    Replies: 4
    Last Post: 08-25-2009, 12:13 AM

Posting Permissions

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