Address book application in java using jdbc to connect to mySQL server

hi there .....
as clear from the topic i want to make an address book.....as above
this is my first ever proper application of java
i have this plan
class GUI{* contains all components */}
class links_GUI_to_db{* contains business logic simple enough from name */}
then i make objects of both classes in "Main" class and all processes are done there
as i am totally new to this thing , i would like some advice and an initial guideline on how to proceed
i am NOT ASKING for code but advice on interaction of classes and how to proceed intitially
thanks

Hi,
The answer depends pretty much on how ambitious you are, and several articels and books can be written on the topic, so it's unfortunately not something that can be fully answered in a short post.
My best advice is that you google on MVC and on how to create layered applications. You can after that start reading e.g. JDBC tutorials and Swing tutorials (if that is the UI that you are going to use).
Kaj
Ps. I would probably not use MySQL as database for an address book. I would instead use a database that doesn't require installation. E.g. H2 or Derby.

Similar Messages

  • I want to use jdbc to connect MS SQL SERVER

    hi,
    I want to use jdbc to connect MS SQL SERVER,not the jdbc-odbc bridge.
    I download the driver from MS,deploy it,but when I connect the database such as:
    <%Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");%>
    <%String sConnStr="jdbc:microsoft:sqlserver://computer2000:1433";%>
    <%Connection conn=DriverManager.getConnection(sConnStr,"sa","123");%>
    <%Statement stmt=conn.createStatement();%>
    but it said
    javax.servlet.ServletException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    how can i work out this problem
    maybe my configure is wrong,please give me a successful sample configuration
    thanks a lot

    Hi,
    I am not sure where you have got the following code from
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    What happens here, is Java Runtime will search for the Class named:
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    If this Class is not in the Runtime Classpath, it will throw the Error that you have got. Kindly get the proper driver as well as ensure that the Class is available in the Runtime Classpath.
    Thanks and regards,
    Pazhanikanthan. P

  • MacBook Address Book Application Does Not Run

    MacBook OSX 10.5.8 - Address Book application will not run - it shows up in Applications Folder but will not run - either double click or command File - Open.  I have reinstalled the Address Book application with the original installation disk, which indicated the application was installed, still will not run.  Rebooted, reinstalled again - same result -- the Applications Folder shows the file size as 1.4 Mb - updated today - the installation disk showed approx. 53 Mb was being installed - not sure if the Application Directory is only showing a command file or what - also ran the hardware diagnostic and found no problems.  Software update shows current software is up to date.
    Haven't used Address Book so do not know if it ever worked.  Need it now to sync with IPhone 4.  Any Ideas?

    rjackjr,
    After reinstalling an Apple application from the installation disk, it is also necessary to reinstall the latest Combo Update for the installed system. In your case that would be Mac OS X 10.5.8 Combo Update.
    Try that and see what happens with your Address Book application.

  • I just purchased a new to me ibook g4 I have all the disks but the cd does not seem to read them properly. I wanted to re install everythMost everything works anyway except my address book application , help how do I reinstall

    I just purchased a new to me ibook g4. I have all the disks but they do not seem to work properly. When I restart holding the C key they just spit out of the drive. I wanted to reset everything back to factory and start over but no go. Most everything works anyway except my address book application. It seems to be missing. How can I download and reinstall a new address book App. Thanks, John

    iBook G4/1.33 12-Inch (Mid-2005 - Op)
    1.33 GHz PowerPC 7447a (G4)
    Intro Date:
    July 26, 2005
    Disc Date:
    May 16, 2006
    Order No:
    M9846LL/A
    Model No:
    A1133 (EMC N/A)
    Subfamily:
    iBook G4 - Mid-2005
    Model ID:
    PowerBook6,7
    Std. RAM:
    512 MB
    Std. VRAM:
    32 MB
    Std. HD:
    40 GB (4200 RPM)
    Std. Optical:
    8X "Combo Drive"
    Complete iBook G4/1.33 12-Inch (Mid-2005 - Op) Specs
    The problem with accessing the content of the disks is the CD Drive does not seem to access them. It also has a heck of a time ejecting them. Other disks seem to read. The unit came with imovie disks and I can use them. The disks look perfectly good no scratches but they just don't work, I was hoping I could just get a online copy of the address book to replace the one that seems to be missing. Or find it somewhere on my drive. Have no clue where to look though. 

  • How do I re-install my address book application?

    While trying to import my contacts from my Hotmail account, I melted my Address Book application and had to send it to the trash. How do I re-install it? Can I re-install it? Do I have to re-install the whole operating system? Please help, I'm trying to learn how to use my mac!!

    G'day.. and welcome to the forums.
    I cannot imagine any circumstance where importing data would require that you delete the Address Book application!
    Have you emptied your trash? If not, move it back to your Applications folder.
    If not, the simplest path (least technical) path could be an Archive and Install, preserving users.
    Otherwise (if you are confident), install [Pacifist|http://www.charlessoft.com> and grab your Leopard install DVD. You should then be able to locate the Address Book in one of the installation packages - and you will be able to install it directly.
    You will then need to download the combo update to your operating system level (e.g 10.5.4), and install any Address Book updates that apply to that as well.
    I hope this helps.

  • How do I download a new address book application?

    My son deleted Address Book and now he wants its back. A software restore did not put the address book back. How do I find a way to download a new copy of the application Address Book? (He also deleted Mail app but I transferred mine over to his computer but that did not work for address book. I am running Tiger and he panther) I will strangle my son soon. Help. He should not delete applications willy nilly..not to mention they are really useful. Help.
    Ella

    Hello Ella.
    If you are running Tiger and your son is running Panther, I'm not sure how the Tiger Mail.app version is working with Panther. If it is working, it probably won't be for long. Your son needs the Panther version of Mail and Address Book which are not available as a download.
    You need to use an application called Pacifist with the Panther install package which allows for installing individual applications from the Panther install discs without re-installing the entire OS.
    You can download Pacifist at the following link.
    http://www.versiontracker.com/dyn/moreinfo/macosx/12743
    If your son is currently running 10.3.9 and the Panther install package includes an earlier version, after re-installing the Panther Mail.app and Address Book using Pacifist, you need to download the 10.3.9 Combo Update and re-install 10.3.9 to get the re-installed Mail.app and Address Book applications to the current version as of 10.3.9.
    You can download the 10.3.9 Combo Update here.
    http://www.apple.com/support/downloads/macosxcombinedupdate1039.html

  • Re: Apple address book application PRINT PROBLEM

    When printing a hard copy of my address book, I encounter these problems...
    1, in any print format I use,  whether compact or indexed, whether I choose landscape or portrait, some info for the last contact in a column will "wrap" up to the next column with the 1st line cut off at the top!  The card name in the first column prints just fine, but one column over doesn't start with a card name and the info that starts to print there is only half a line, cut off at the top!
    2, the "Notes" field won't print.  I cannot find any print field option to show the notes I have made.  I cannot find any way to add a "notes" field in the card template.  I would change a field to a custom name, but then the field itself doesn't accommodate what I need to record there.
    3.  I have tried to change the font size in the print options, but the font size will not change to a larger type when I print.  
    Can anyone help with a Fix for these issues?  Or can anyone suggest a purchased Apple application that I could export my address file to and print with more options than the standard Apple address book application? 

    Hi,
    have a look at Pacifist http://www.charlessoft.com/
    It should do the trick.
    Regards
    Stefan

  • Address Book Application Freezes

    While using the address book application it froze up, I did a forced boot. When I reopened the Address Book application again it freezes up while opening.
    How can I delete the Address book application and reload it?
    I luckily have all my contacts backed up on my iphone.

    I have the same problem since the update to qo.5.5 and it seems to be related to Smart Groups. I used to use the Address Book in Skype and Eudora. After the upgrade to 10.5.5 Eudora went into an infinte loop. After using a "virgin" version of it and use it in my usual waxy WITHOUT checking the box for MAc OS X Adress Book, Eudora worked. But still Address Book didn't, but only under the following circumstances: As long as only "normal" groups are presented it works. As soon as I try to scroll down so that the very first smart group should become visible it wents into an infinte loop. I am unable to back-up the exisitng archive. I have tried a lot to change this: I had a backup BEFORE the upgrade of the data base. It doesn't work. I used earlier back-uped version of the data base. It doesn't work. I deleted in the Metadate file the Smart Group specifications: As soon as I start Address Book, they are recreated! And the same error occurs. I can export to create vcards. I can send emails from within Address Book. But as soon as Smart Groups are involved it doens't work any linger.
    I alos tried immieditaely the advice of Mulder: It doens't change the behviour of Address Book.
    Is there an other advice?
    thomas

  • Address Book application no longer launches

    I broke my laptop a few weeks ago and had the data manually retrieved and put on a hard drive. I bought a new macbook pro earlier and I was manually transferring the application files when i think i accidentally overwrote the address book application. Note my old computer was using tiger - so every time I try to launch address book it says something like this address book doesnt work with this version of Mac OS X. So I deleted Address Book from application and ran the 10.5.3 update. Address Book is back, but now has no logo (it looks like the application logo) and doesn't do anything when I click on it.
    How do I get my address book back!?

    An update won't replace the whole program. You either need to get it from the instal DVD or copy from a Leopard version, then run update, again.
    Pacivist will allow you to pull individual programs off the install DVD.

  • Address book application won't open

    I just got a new IPhone and I wanted to import my contacts from Entourage. I used the Help function to get the method and did an export using LDAP. However, the Address book application will not let me in to edit, import or do anything other than add a current email address to the address book. I tried opening the Address book from the Finder but when I click on it nothing happens and it doesn't open. What should I do next?

    sblady,
    If you are running the latest updates to Entourage, you don't need to export the contacts with LDAP from Entourage to get them into Address Book.
    This article contains more information:
    http://docs.info.apple.com/article.html?artnum=305938
    I am unclear from the text of your post if Address Book is not opening at all, or if it is just not allowing you to do anything once it opens. This article shows several of the Address Book screens:
    http://docs.info.apple.com/article.html?path=AddressBook/4.0/en/disc.html
    Do any of those screens come up?
    Hope this helps,
    Nathan C.

  • Address Book Application Dissapeared!

    I dont know what happened but I just went to open my Address Book from my dock and I got the question mark so I went to the apps folder, no Address Book! I did a spotlight search, and it found the Address Book Widget which I ran, and it had my contacts in it and my mail is still pulling from there, but what the **** happened to the Address Book Application?? I had this happen once before with the Preview program, just up and dissapeared on me.
    I do not sync to mac mail, and nothing out of the ordinary. Was there yesterday, gone today. Any thoughts?

    Well, applications don’t just disappear by themselves. If they keep disappearing from /Applications/ in your case, it has to be because someone removes them from there...
    Anyway, you may reinstall Address Book as described in the second part of the following article:
    Custom installs in Mac OS X 10.4
    Note that Address Book may appear grayed out in the installer, but will be checked if you check Applications there, and will be installed if Address Book has been removed from the /Applications/ folder.
    If the version of the system software on your install disks is earlier than what you’re using now (and only in that case), then you must also reinstall the Combo Update for the type of computer and the version of Mac OS X you’re using, to bring Address Book back in sync with the rest of the system:
    About the Mac OS X 10.4.8 Combo Update
    Mac OS X 10.4.8 Combo Update for PPC
    Mac OS X 10.4.8 Combo Update for Intel
    You may also want to read the following articles for guidelines on how to properly install system updates:
    Troubleshooting installation and software updates
    Installing software updates
    Basically, you should verify/repair the startup disk before installing the update, no applications should be running while installing it, and you may experience unexpected results if you have third-party system software modifications (not normal applications) installed.

  • How can I export Outlook 2007 contacts to Leopard Address Book application?

    Hi,
    I just bought a MAC and I want to get rid of my PC, but first i want to export my CONTACTS from my Windows MS Outlook 2007 and import them in Leopard Address Book application.
    Any way I can do that ?
    Many thanks !

    I don't know if doing it with single vcards is the way you want to have it. This can be a quite big task when having many contacts.
    In Outlook You can export them as text file. You got to +File - Import and Export+. In the assistent you choose "Export to file". Then you choose "comma seperated (Windows)" In the next step you mark your Contacts folder. Then you choose where you want to save your output file. (I mountet my Documents folder on the mac and saved it there). Finish this assistent.
    Now on the mac you open AdressBook. +File - Import - text+ file and choose then your .csv file. Now in the AdressBook a import window opens where you can set all the fields matching to where Outlook stored the information. But basicly it should work without doing there something. Then you can import all Your Outlook contacts in one run.
    Hope this helps You!

  • I've lost my address book application. How do I get it back?

    My address book application has disappeared. Can I download it somewhere?

    Insert your installer DVD, open the Optional Installs folder, double-click on the Optional Installs package.  You can select Address Book for installation.  You will have to re-run the 10.5.8 Combo Updater if the version of OS X on the installer DVD is not 10.5.8.

  • Importing Netscape's address book into Apple's Address Book application

    I want to import my email Netscape email address book into Apple's Address Book application. So I open the Address Book application and select import from the pull down menu. That brings up three choices, vCards, LDIF and Text. I previously had saved my Netscape address book as a pdf file. So I selected, Text. A window appeared from which I was to select where I wanted to get the file from. I made selections until I got to where my pdf file was and selected it. But I got the following error message.
    The file you selected does not appear to be a valid comma separated values (csv) file nor a valid tab delimited file, please choose another file.
    So I tried again and this time I selected LDIF, but when the file in my Netscape Users Profile that would appear to be my address book came up, it was “greyed out” and I could not select it. The file had the name “abook.mab”. It is not an LDIF file. There are no LDIF files in my profile.
    So I tried selecting vCards, but I got the exact same results as above. The file that looks like it is my address book, is grayed out and cannot be selected.
    So I went into Netscape to see if I could export my address book into Apple’s Address Book. I chose export from the Netscape menu and a window opened asking me to select where I wanted to export the file to. But when I got to Apple’s Address Book application, it was greyed out and could not be selected. The same thing happened when I tried to select Apple’s Mail program.
    I have about three hundred email addresses in my Netscape address book. If these addresses have to be manually entered into Apple's Address Book, I will not make the switch to Apple's Mail program.

    Netscape's Address Book window does not have that option. The Export option is under the Tools menu, but does not give you any options in the Tools menu. Once you select Export, the Export Address Book window opens. This window does have a format option where you can select either LDIF, Comma Separated or Tab Delimited. But it doesn't matter which of those I select, Apple's Address Book and Mail applications are not available for selection.

  • How to add Custom Address Book Application?

    I need add my custom address book application, so I has reading docs and wikis about convergence customization but no see clear how to.
    I take a dojo tutorial for change event from addres book buttons but may be are not the best practice.
    Somebody know information source for solve this please.
    Thanks.

    JCV_ wrote:
    I need add my custom address book application, so I has reading docs and wikis about convergence customization but no see clear how to.The "YahooABSPlugin" code in the c11n_sample directory may provides some guidance.
    If this still doesn't help then you could contact Sun to get help from Sun Professional Services. Writing a custom Convergence application is far from trivial.
    Regards,
    Shane.

Maybe you are looking for