User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 425,926 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,704 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 2233 | Replies: 6
Reply
Join Date: May 2006
Posts: 6
Reputation: vinahorse78 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vinahorse78 vinahorse78 is offline Offline
Newbie Poster

Help I hava trouble with Microsoft Access database, Pls help me.

  #1  
Jun 13th, 2006
Hi all,

I 'm writing a small program called ATM (Automatic Teller Machine) connected to Microsoft Access Database in Java. The program is complied without no fault, Howerver it doesn't display Form which I can enter user information (such as: accountnumber, pin,...). It shows:
"Usage: Java ATM databaseDriver databaseURL, Press any key to continue...."

I 'm looking forward to receiving hepl from you soon.

Thanks and regards,
Hoang Van Cuong


AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2004
Location: H4x0rville
Posts: 2,105
Reputation: server_crash is on a distinguished road 
Rep Power: 9
Solved Threads: 18
server_crash's Avatar
server_crash server_crash is offline Offline
Postaholic

Re: I hava trouble with Microsoft Access database, Pls help me.

  #2  
Jun 13th, 2006
Originally Posted by vinahorse78
Hi all,

I 'm writing a small program called ATM (Automatic Teller Machine) connected to Microsoft Access Database in Java. The program is complied without no fault, Howerver it doesn't display Form which I can enter user information (such as: accountnumber, pin,...). It shows:
"Usage: Java ATM databaseDriver databaseURL, Press any key to continue...."

I 'm looking forward to receiving hepl from you soon.

Thanks and regards,
Hoang Van Cuong




I don't understand... The "press any key to continue..." tells me your program is running, right? Are you recieving any exception?
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: I hava trouble with Microsoft Access database, Pls help me.

  #3  
Jun 13th, 2006
Sounds like you tricked someone else to do your homework assignment for you and they didn't do what you thought they would.

How the heck else can you get a message on screen that you don't know where it comes from? The only reason for that is that you didn't write the code, and in this case the only place the message can come from is from code you claim to have written yourself.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: May 2006
Posts: 6
Reputation: vinahorse78 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vinahorse78 vinahorse78 is offline Offline
Newbie Poster

Re: I hava trouble with Microsoft Access database, Pls help me.

  #4  
Jun 13th, 2006
Hi Jwenting,

Don't say something like that. I know a message come from, Howerver I don't know what the trouble is, I 'm a new learner in Java. So if you are kind, Pls tell me what i should do and how ?

Regards,
Reply With Quote  
Join Date: Jun 2004
Location: H4x0rville
Posts: 2,105
Reputation: server_crash is on a distinguished road 
Rep Power: 9
Solved Threads: 18
server_crash's Avatar
server_crash server_crash is offline Offline
Postaholic

Re: I hava trouble with Microsoft Access database, Pls help me.

  #5  
Jun 14th, 2006
Originally Posted by vinahorse78
Hi Jwenting,

Don't say something like that. I know a message come from, Howerver I don't know what the trouble is, I 'm a new learner in Java. So if you are kind, Pls tell me what i should do and how ?

Regards,


We can't help you if you don't give us more information....

This:
"Usage: Java ATM databaseDriver databaseURL, Press any key to continue...."

Is not an error message. That is YOUR program running and displaying that message... If it's not displaying a 'form', then you didn't add it or create it..
Reply With Quote  
Join Date: May 2006
Posts: 6
Reputation: vinahorse78 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vinahorse78 vinahorse78 is offline Offline
Newbie Poster

Re: I hava trouble with Microsoft Access database, Pls help me.

  #6  
Jun 14th, 2006
Hi all,

My program is complied without fault, Howerver when I run it with following parameters: java ATM sun.jbdc.odbc.JdbcodbcDriver jdbc:odbc:ATM
It displayed a message on the command line window as following:
java.lang.ClassNotfoundException: sun.jbdc.odbc.JdbcodbcDriver
at java.net.URLClassLoader$1.run<URLClassLoader.java:199>
at security.Accesscontroller.doPrivileged<Native method>
at java.net.URLClassLoader.findClass<URLClassLoader.java:187>
at java.lang.ClassLoader.loadClass<ClassLoader.java:289>
at sun.misc.Launcher$AppClassLoader.loaderClass<Launcher.java:274>
at java.java.lang.ClassLoader.loadClass<ClassLoader.java:235>
at java.lang.ClassLoader.loadClassInternal<ClassLoader.java:302>
at java.lang.forName0<Native method>
at java.lang.Class.forName<Class.java:141>
at ATM.<init><ATM.java:83>
at ATM.main<ATM.java:905>
Exception in thread "main" java.lang.NullPointerException
at ATM.loadAccountNumbers<ATM.java:807>
at ATM.createUserInterface<ATM.java:475>
at ATM.<init><ATM.java:101>
at ATM.main<ATM.java:905>

I don't really know what the trouble is, Pls hepl me to sovle this problem.

Thank you in advance,
Reply With Quote  
Join Date: Jun 2006
Posts: 3
Reputation: yvs is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
yvs yvs is offline Offline
Newbie Poster

Re: I hava trouble with Microsoft Access database, Pls help me.

  #7  
Jun 16th, 2006
Does your program import java.sql.DriverManager package?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 9:04 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC