Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2009, 06:02 PM
Member
 
Join Date: Nov 2008
Posts: 34
Rep Power: 0
ashin is on a distinguished road
Unhappy java with access database
hi guys,
pls help me to connect to my database using access this is my syntax but..

import java.sql.*;

public class ptime_database {

Class.forName(DriverImplementationClass);

String url = "jdbcdbc:POS";
String user="ashin";
String password ="ashin";

Connection connection = DriverManager.getConnection(url,user,password);

}

my error is the dot (.) before forName and the DriverImplementationClass...
what will i do so that i can connect to my database....

and am i right that i put my database in the same folder where my java class also located?
tnx.. i need ur answer asap..
__________________
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-11-2009, 03:31 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,256
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Originally Posted by ashin View Post
Class.forName(DriverImplementationClass);
Okay, what you going to do with this?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-11-2009, 04:48 AM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
DriverImplementationClass???

there should be something like "sun.jdbc.odbc.JdbcOdbcDriver"
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-11-2009, 11:06 AM
Member
 
Join Date: Nov 2008
Posts: 34
Rep Power: 0
ashin is on a distinguished road
Default
i think there is no error anymore, no red marks... but now, my problem is adding info in the database... im using eclipse.... sorry im new in SWt... esp JAVA and ACCESS...
__________________
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-12-2009, 06:04 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,256
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Adding data in the DB, nothing to do with the IDE. Something wrong in your data inserting code. Can you show what you have tried and explain what's the exact problem you have with the data adding in the DB?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to fetch 20,000 records from excel sheet & insert into access database using Java santosh_tamse JavaServer Pages (JSP) and JSTL 0 02-22-2009 11:24 AM
How to convert access database to mysql database? vrk Advanced Java 2 02-11-2009 05:43 AM
How to access MySQL Database in Eclipse 3.2 nijava Eclipse 2 12-12-2008 04:04 PM
Database access Doctor Cactus New To Java 1 12-12-2008 02:30 PM
Help with access a database using Microsoft Access cachi Database 1 08-07-2007 08:51 AM


All times are GMT +2. The time now is 12:59 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org