Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 27-03-2010, 11:59 PM   #1 (permalink)
047
Apprentice
 
047's Avatar
 
Join Date: Feb 2007
Posts: 93
Unhappy Need Help in NetBeans connectivity with MSAccess 2003 !!!! urgently


Hi guys...

can anyone please help me in NetBeans 6.8 connecting with MSAccess 2003?

i m using following code to setup a connection...

"
public static void main(String args[])
{
String myDriverName="sun.jdbc.odbc.JdbcOdbcDriver";
String url="jdbc: odbc:samdatabase";

try
{
Class.forName(myDriverName);
}

catch(ClassNotFoundException e)
{
System.err.println("Class not found");
return;
}

try
{
Connection con=DriverManager.getConnection(url);
System.out.println("Connection established successfully");
}

catch(Exception e)
{
System.err.println("Connection did not establish successfully");
}
}

"


please help me out in connecting to MSAccess......

one more thing....if i want to use this in a swing form..how to display an error message to the user?
like we do in Visual Studio 2005 using "messageBox()". is there anything which can display messagebox in netbeans 6.8.....
047 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 29-03-2010, 07:16 PM   #2 (permalink)
047
Apprentice
 
047's Avatar
 
Join Date: Feb 2007
Posts: 93
Exclamation Re: Need Help in NetBeans connectivity with MSAccess 2003 !!!! urgently

Hey, please reply.....Its urgent......
047 is offline  
Closed Thread

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
Speakers Needed Urgently azaad_shri75 Audio 12 24-03-2010 07:52 PM
Another Pc required urgently happy20b Hardware Q&A 3 24-03-2010 10:18 AM
Database Connectivity with Oracle cooldev007 Programming 0 24-01-2010 11:11 AM
INTERNET vignesh Open Source 25 24-01-2006 09:58 PM
Office 2003 SP2 released gxsaurav Software Q&A 24 07-10-2005 07:00 PM

 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 03:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2