I guess the version is old

my assignment requires me to work with ms access. i had thus taken an example from dietel and dietel book to learn how java works with access. i am getting output messages like Failed to connect to JDBS/ODBC driver.
here is the code i will be greatful if any one can check it out.
import java.sql.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class Scene3 extends JFrame
     private Connection connection;
     private JTable table;
     public Scene3()
          // the url specifying the book database to which this program connects using JDBC
          // to connect to a Microsoft ODBC database.
          String url = "jdbc:odbc:Transport1";
          String username = "anonymous";
          String password = "guest";
          //Load the driver to allow connection to the database
          try
               Class.forName("sun.jdbc.odbc.jdbcodbcDriver");
               connection = DriverManager.getConnection(url,username, password);
          catch (ClassNotFoundException cnfex)
               System.err.println("Failed to load JDBC/ODBC driver.oooooooooooooooo");
               cnfex.printStackTrace();
               System.exit(1);// termainatin program
          catch (SQLException sqlex)
               System.err.println("Unable to connect");
               sqlex.printStackTrace();
          getTable();
          setSize(450,150);
          show();
     private void getTable()
          Statement statement;
          ResultSet resultSet;
          try
               String query= "SELECT * FROM Driver";
               statement = connection.createStatement();
               resultSet = statement.executeQuery(query);
               displayResultSet(resultSet);
               statement.close();
          catch(SQLException sqlex)
               sqlex.printStackTrace();
     private void displayResultSet(ResultSet rs)
     throws SQLException
          //position to first record
          boolean moreRecords = rs.next();
          // if there are no records, display a message
          if(! moreRecords)
               JOptionPane.showMessageDialog ( this, "ResultSet Contained no records");
               setTitle ( "No records to display");
               return;
               setTitle ("Authors table from Books");
               Vector columnHeads = new Vector();
               Vector rows = new Vector();
               try
                    // get column heads
                    ResultSetMetaData rsmd = rs.getMetaData();
                    for (int i = 1; i <= rsmd.getColumnCount();++i)
                    columnHeads.addElement(rsmd.getColumnName(i));
                    // get row data
                    do
                         rows.addElement(getNextRow( rs,rsmd));
                    while (rs.next());
                    // display table with Resultset Contents
                    table = new JTable(rows, columnHeads);
                    JScrollPane scroller = new JScrollPane (table);
                    getContentPane().add(scroller,BorderLayout.CENTER);
                    validate();
               catch (SQLException sqlex)
                    sqlex.printStackTrace();
     private Vector getNextRow( ResultSet rs, ResultSetMetaData rsmd)
     throws SQLException
          Vector currentRow = new Vector();
          for(int i = 1; i<=rsmd.getColumnCount();++i)
          switch(rsmd.getColumnType(i))
               case Types.VARCHAR:currentRow.addElement(rs.getString(i));
               break;
               case Types.INTEGER:
               currentRow.addElement(new Long(rs.getLong(i)));
               break;
               default:
               System.out.println("Type was: "+rsmd.getColumnTypeName(i));
               return currentRow;
     public void shutDown()
          try
               connection.close();
          catch (SQLException sqlex)
               System.err.println("Unable to disconnect");
               sqlex.printStackTrace();
     public static void main(String args[])
          final Scene3 S3 = new Scene3();
          /* S3.addWindowsListener(
               new WindowsAdapter()
                    public void windowClosing( WindowEvent e)
                    S3.shutDown();
                    System.exit(0);
}

the code buttons and code tags, man i have no idea about that. thanks a looooot man, i was very happy see that i had made a typo and now i can do it.
unfortunately it did not help much
just take a look at the output:
Note: D:\FyearProject 2005\ver2-Colorful F.Y.Project 2005\Scene3.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\FyearProject 2005\ver2-Colorful F.Y.Project 2005\Scene3.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Similar Messages

  • I want to reinstall mail.app from the disk but the version is old on the disk, i'm using 10.6.8

    Hi,
    I deleted the mail.app in the bid to save space but i want to re-install. I have inserted the install disk and tried to do it that way but the version is too old.
    in the box i was told to install the combo update which one do i install and will it work. Is there something else i can do

    If you've already restored the older version of Mail, then run the Mac OS X 10.6.8 Update Combo v1.1 update.
    Note that the version of Mail you restored should be from a Snow Leopard Installer Disc.

  • How do I find out the version / edition of Oracle ?

    Hi,
    I guess the version installed in the box is Oracle 8i (8.1.7). But I am not too sure about it and also I found to find out which edition it is. How can I find out ?
    Please let me know.
    Regards,
    Harish

    Hi,
    Thanks for all your assistance.
    I found out the information when I logged in to the Oracle SQL Plus -
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    Thanks,
    Harish
    T

  • I have an old g5 mac and can't connect my iPhone 4 or my ipad3 to iTunes to be able to update its telling me I need a better version of iTunes but when I download the version my mac can't take the upload what can I do it's my first mac and need help.

    I have been given a mac g5 old one and I can't connect my iPhone 4 and ipad3 to iTunes to be able to downLoad updates I have downloaded the version of iTunes but my mac won't allow it what can I do need help.

    You need to purchase and install a Mac OS X 10.5 DVD; these are available from sites such as Amazon or eBay.
    (69706)

  • I'm trying to share files from my old MacBook - I'm thinking I don't have the proper version of iTunes.  How do I determine the version on my new iPad 2 - 2 weeks old?

    I downloaded iFlashdriveHD, but the appropriate skins don't display.  App asserts I must have iTunes ver. 9.1 or later.  How do I determine what I have on a two week old iPad?
    Just trying to do USB transfers from my black MacBook.

    App asserts I must have iTunes ver. 9.1 or later.
    Where are you seeing this?
    The app is not telling you that you need 9.1 on your iPad.
    It does not use iTunes on the iPad for anything.
    I'm trying to figure the version on my iPad.
    It is the version that comes with your specific iOS firmware version.
    But again, it is irrelevant to the app.
    If you just got the iPad, it (the iPad) requires iTunes 10.4 on your computer.

  • Adobe reader xi cannot be 'enabled' once it is installed. FF told me to get the latest version as old version was unsafe.what do i do?

    adobe reader xi cannot be 'enabled' in FF once it is installed. FF told me to get the latest version as old version was unsafe.
    what do i do?
    (win7) (FF18.01).

    There are other things that need your attention.
    Please Update to the latest Firefox 20.0.x version.
    *Help > About Firefox
    *https://support.mozilla.org/kb/update-firefox-latest-version
    *https://support.mozilla.com/kb/Updating+Firefox
    The Firefox Firefox/18.0 version that you currently run is no longer supported with security updates
    *http://kb.mozillazine.org/Adobe_Reader
    *http://get.adobe.com/reader/otherversions/

  • I recently installed the trial version of Adobe XI and the trial period ended, so I wanted to revert back to the version I already had. I did not see any uninstall feature and my old version was apparently replaced by the trial version. I cannot re-instal

    I recently installed the trial version of Adobe XI and the trial period ended, so I wanted to revert back to the version I already had. I did not see any uninstall feature and my old version was apparently replaced by the trial version. I cannot re-install a previous version b/c I need both a product Id (GOd only knows where that is now) and a way to uninstall the trial. Any ideas?

    When you installed the trial, there should have been an option to have ignored your current installation and leave it. Apparently you skipped that case. To uninstall the trial (in Windows) go to Control Panel>Programs & Features and select the Acrobat XI and choose uninstall. After the uninstall run http://labs.adobe.com/downloads/acrobatcleaner.html to clean up your system. HOWEVER, if you see your old Acrobat in that window, do not run the cleaner, but do a repair on the old version.
    You did not mention the old version you had. You might try from http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html. As for the S/N, you should have register and if so you can get it from Adobe. The instructions are at http://helpx.adobe.com/x-productkb/global/find-serial-number.html#adobeproductdownload.
    Be sure to backup any download of the old installer and the S/N to CD or backup HD for future use. They will not likely continue to be available.

  • Hi, I need to install Adobe Flash Player because the version I have installed in my Mac Os is old, but I can´t because I need to write my email and my password and I don´t remember my password, so what can I do?

    Hi, I need to install Adobe Flash Player because the version I have installed in my Mac Os is old, but I can´t do it because I need to write my email and my password and I don´t remember my password, so what can I do? Thank you

    The email and password will be the ones for your computer's security, not something for any Adobe product.  You might need to consult Mac customer support if you are unable to determine the required information.

  • I got offer to UPGRADE my FIREFOX, so I follow instructions. Afyter installation I learnt that the version downloaded is NOT for my Mac version 10.4.11. My old version was erased. What can I do???

    I have a desktop Mac version 10.4.11
    While working with my Firefox, I got a wiundow that said : "there is an UPGRADE for your FIREFOX. I accepted the offer to UPGRADE, and, in the process, my OLD FIREFOX was erased.
    The new FIREFOX does not work with my MAC Version.
    I NEED FIREFOX for my bussiness.
    PLEASE HELP!!!
    Thanks
    Gonzalo Rahausen
    [email protected]

    * Firefox 4 and later require at least OS X 10.5 and an Intel Mac.
    * http://www.mozilla.com/firefox/7.0.1/system-requirements/
    -> Download Firefox 3.6.23 (Mac OS X 10.4 and later):
    * http://www.mozilla.com/en-US/firefox/all-older.html
    -> Uninstall your current Firefox
    * http://kb.mozillazine.org/Uninstalling_firefox
    -> [[Installing Firefox on Mac]]
    * http://kb.mozillazine.org/Installing_Firefox#Mac_OS_X
    Check and tell if its working.

  • We feel it better to have a status bar in firefox.we got it in firefox3 but can't find in firefox4&lettest.its really embarrasing for us not to see the exact status of browsing.is there any solution to browse lettest version with old status bar.pls answer

    we feel it better to have a status bar in firefox.we got it in firefox3 but can't find in firefox4&lettest.its really embarrasing for us not to see the exact status of browsing.is there any solution to browse lettest version with old status bar.please answer or we have to use the old one because its very ugly to see a revolving status.

    I checked the status of the server and hard drive by booting off of the 10.4 installation disk, select utilities and disk utility.
    I know very little about terminal, however I'm pretty good at dos so I can figure some things out if given some commands.
    Anyway, I ran some commands and here are the results:
    megaraid -showstatus
    MEGARAID CLI version 1.0.12
    No cmd argument
    Um, so I think I remebered the command incorrectly and I did -showdevices instead. Sorry.
    megaraid -showdevices
    Physical devices Available = 3
    Drive ID Identification Size(MB) Status
    0 Hitachi HDS722580VLSA80 78529 Failed
    1 Hitachi HDS722580VLSA80 78529 Online
    2 Hitachi HDS722580VLSA80 78529 Online
    diskutil list
    /dev/disk0
    #: type name size identifier
    0: Applepartitionscheme *153.3GB disk0
    1: Applepartitionmap 31.5KB disk0s1
    2: AppleHFSServer HD 153.2GB disk0s3
    /dev/disk1
    #: type name size identifier
    0: Applepartitionscheme *2.6GB disk1
    1: Applepartitionmap 31.5KB disk1s1
    2: AppleDriveATAPI 4.0KB disk1s2
    /dev/disk2
    #: type name size identifier
    0: untitled *467.0KB disk2
    /dev/disk3
    #: type name size identifier
    0: untitled *95.0KB disk3
    /dev/disk4
    #: type name size identifier
    0: untitled *95.0KB disk4
    /dev/disk5
    #: type name size identifier
    0: untitled *95.0KB disk5
    /dev/disk6
    #: type name size identifier
    0: untitled *219.0KB disk6
    megaraid -showconfig
    Logical Drive RAID Level Stripe Size(KB) Size(MB) Status
    0 5 64 156958 Degraded
    megaraid -showapater
    FW Version = A130
    Bios Version = G117
    Product Name = MegaRAID SATA 150-4D
    Cache Size = 64MB
    diskutil checkRAID
    No RAID sets found
    Thank you for your help. I really appreciate it and so do the teachers and the students!

  • HT1338 My Mac says updates were installed for Keynote, Pages & Numbers but when I check the versions they are still the old versions.

    My Mac says updates were installed for Keynote, Pages & Numbers, however, the version number shows to be the old version...   If check for updates, it's telling me no updates are available...

    The old versions are not removed when the new versions are installed. (The updates add features that improve cross-platform editing of files but remove many other features so the install leaves the old version in case the old features are important to you). If you look in your applications folder you should find both versions.

  • New computer with lightroom 5.7 installed old computer has 3.6 installed.The new version has a conflict when trying to read the external harddrives.Old sees it as drive (I) but new sees it as drive(E).When I try to rename external drive it comes up as LaC

    New computer with lightroom 5.7 installed old computer has 3.6 installed.The new version has a conflict when trying to read the external harddrives.Old sees it as drive (I) but new sees it as drive(E).When I try to rename external drive it comes up as LaCie (E) (I) so I cannot get it to change the name for lightroom to read it with all the previous edits-please help all advice appreciated.

    lotta stuff going on.  I'm in the office now and don't expect a client for about 45 minutes.  Want to walk thru this via skype or ichat?  email me directly if you do.  [email protected]
    If not, post back and I'll try and walk thru these things. 
    Also, if you want to email me the project, I'll see if I can open it here. 

  • HT4962 how i get ios 5 on my ipod 3g becuase the version is too old 4.2.1

    how i get ios 5 on my ipod 3g becuase the version is too old 4.2.1

    Very likely since yu really have a 2G iPod. Those only go to 4.2.1. If your is an 8 or 16 GB one it is a 2G since Apple only made 32 and 64 GB 3G iPods. A 32 GB one can be either. See:
    http://support.apple.com/kb/HT1353#iPod_touch_late2009
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • Pages, Numbers and Keynote won't update.  App Store says update was applied, but when I open Pages/Number/Keynote, the version of  it shows the old version.

    Pages, Numbers and Keynote won't update.  App Store says update was applied, but when I open Pages/Number/Keynote, the version of  it shows the old version.

    When you updated, the old version remained on your Mac, in a subfolder within Applications named iWork '09.  Any icons you have on the Dock still point to that old version.  Try opening the Numbers that is located in your main Applications folder, not the one in the subfolder. If that works, then drag that one to the Dock.
    SG

  • Bifoure i waz have the version 4.3.3 ...i update whit the new one......bat naw i need tu put it back the old version 4.3.3   haw i can change it back?

    bifoure i waz have the version 4.3.3 ...i update whit the new one......bat naw i need tu put it back the old version 4.3.3   haw i can change it back?

    There is no legit way at all to go back.

Maybe you are looking for

  • Touch id doesn't work after replacing it?

    Hello, recentlly i've replaced my home button on a iphone 5S - clicking it works great, but Touch id fails - PLZ help.

  • BW Data extraction error?

    Hi I am trying to do extraction from IDES  ECC6  to BI ...when i run Infopackage my monitor is allways yellow status. i ckecked in : SM58:  No service for system SAPPIS, client 800 in Integr ation Directory             Message no. SR053 ( IDOC_INBOUN

  • Where can i get a good Oracle Reports tutorial

    Hi. Any of you can tell me where i can find a good oracle reports tutorial? Cheers.

  • User response fuction help

    Hi Techis, I need to create user response function in webi report in a variable.The variable i use for furtur calculation. Gentis is a prompt name and user selects any one of the 2 values in a prompt. suppose user select "A" in the prompt it will ret

  • Within beanbox can we load a frame

    hai, i had a bean which is a JFrame. I want to test that bean inside the beanbox. but it reports wrong argument exception when i load within beanbox.can't i load a JFrame within beanbox. or any other solution arivarasu