#31
  1. Java Junkie
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Feb 2004
    Location
    Mobile, Alabama
    Posts
    4,023
    Rep Power
    1285
    What database engine are you connecting to?
  2. #32
  3. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    Originally Posted by NormR
    What is the full text of the error message you get? Does it say there is a missing definition for a class?
    If that is the error, you need to find the jar file that contains that class and add it to the classpath when the code is executed.
    Just copy, paste and compile my code. Is it connecting to the database after you click masuk button?

    I want to make the masuk button to be enabled if some of the JTextField are empty. How to do this?
  4. #33
  5. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,724
    Rep Power
    348
    I don't have a database to connect to.

    Add a call to the printStackTrace() method in the catch block so the program will print out the full text of the error messages.
  6. #34
  7. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    What exact code should I use?
  8. #35
  9. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,724
    Rep Power
    348
    In the catch block, add a call to the printStackTrace() method of the exception object.
  10. #36
  11. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    Can you give me an example?
  12. #37
  13. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,724
    Rep Power
    348
    Code:
    catch(Exception x) {
     x.printStackTrace();
    }
  14. #38
  15. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    Originally Posted by bullet
    What database engine are you connecting to?
    Microsoft Access database
  16. #39
  17. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    Here is the error message: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] '(unkown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides. One more, what about the masuk button and the JOptionPane? Why won't the masuk button get enabled after I click it if any of the JTextField are blank? Why won't Java show JOptionPane if any of the JTextField are blank? Please answer these problems either because I have difficulties to know better about catch.
  18. #40
  19. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    Please reply. I need to finish this as soon as possible
  20. #41
  21. Java Junkie
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Feb 2004
    Location
    Mobile, Alabama
    Posts
    4,023
    Rep Power
    1285
    Originally Posted by Tawijakarta
    Please reply. I need to finish this as soon as possible
    Have you verified the database exists and is at the location where it should be?
  22. #42
  23. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    Yes, I already set it in Vista, how to solve this? Can you tell me step by step in great detail? I do not force you but please reply immediately because I need this to finish my thesis ok?
  24. #43
  25. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    Please answer this as soon as possible because I want to finish my work as soon as possible.
  26. #44
  27. Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Aug 2010
    Location
    Eastern Florida
    Posts
    3,724
    Rep Power
    348
    Can you post the full text of the error message that you get?
  28. #45
  29. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    257
    Rep Power
    0
    Post #39 is the error message. Please help me as soon as possible.

IMN logo majestic logo threadwatch logo seochat tools logo