JDBC on ORACLE 10 G 2: Where is the Jdbc driver?

Hi,
I have the JDBC tutorial working with Jdeveloper 1.3 (wich uses Java 1.5), but I would like to test a standalone java source against ORACLE 10 (wich uses Java 1.4).
So far I have found these snippets:
******************** Quote 1 ***********************************************************
// Import the JDBC classes
import java.sql.*;
import oracle.jdbc.pool.OracleDataSource;
// Import the java classes used in applets
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
public class JdbcApplet extends java.applet.Applet
implements ActionListener
// The connect string
static final String connect_string = "jdbc:oracle:thin:hr/hr@//localhost:1521/orcl.oracle.com";
****************************** End quote 1 *******************************************
That does not compile (Java 1.4 is in PATH and CLASSPATH)
Here is the error message:
*************************** Quote ****************************************************
JdbcAplaite.java:22: package oracle.jdbc.pool does not exist
import oracle.jdbc.pool.OracleDataSource;
^
JdbcAplaite.java:82: cannot resolve symbol
symbol : class OracleDataSource
location: class JdbcAplaite
OracleDataSource ods = new OracleDataSource();
******************** End Quote *****************************************************
This other snippet:
***************************** Quote 3 *************************************************
// You need to import the java.sql package to use JDBC
import java.sql.*;
class Selector
public static void main (String args [])
throws SQLException
// Load the Oracle JDBC driver
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
// Connect to the database
// You must put a database name after the @ sign in the connection URL.
// You can use either the fully specified SQL*net syntax or a short cut
// syntax as <host>:<port>:<sid>. The example uses the short cut syntax.
Connection conn =
DriverManager.getConnection ("jdbc:oracle:thin:@oracle-prod:1521:8PRD",
                    "USERNAME", "PASSWORD");
does not work either. Error message:
******************************* Quote *********************************************************
Selector.java:23: package oracle.jdbc.driver does not exist
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
^
1 error
I try to locate the source generated by JDevelopper when using JDBC but I find only XML files.
But I really need Jdbc Java 1.4 style, since I can't change PATH and CLASSPATH if I want to keep ORACLE 10 running on XP PRO.
So I'm stuck.
Many thanks for your help :-)

Hi,
I don't want to use JDeveloper.
I want to write a Java program that connects to the database using Jdbc.
The PATH and CLASSPATH are defined for Java 1.4.
Here is the current CLASSPATH:
L:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar;
L:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;.
What "import java......." should I code?
Many thanks.

Similar Messages

  • New iMac, where's the DVD drive/slot?

    just brought unwrapped a brand new iMac ... where's the DVD drive/slot?  i am a video editor how can i make hard copy of work or watch a DVD of client's work if there's no slot for DVD?????????

    There's none included in the hardware, but you can purchase Apple's external one here: http://store.apple.com/us/product/MD564ZM/A/apple-usb-superdrive

  • When I attempt to open iphoto, I get the loading icon in the working space/picture area.  If I try to reinstall ilife '11, will I lose any pictures?  Where, on the hard drive, are all my pictures actually stored?

    When I attempt to open iphoto, I get the loading icon in the working space/picture area.  If I try to reinstall ilife '11, will I lose any pictures?  Where, on the hard drive, are all my pictures actually stored?

    You won't lose anything because you have a back up, right?
    Most Simple Back Up
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex:
    Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically. Examples of such apps: Chronosync or DejaVu . But are many others. Search on MacUpdate
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Mac Book Pro Retina with Mt Lion.  Where is the Hard Drive?

    Mac Book Pro Retina with Mt Lion.  Where is the Hard Drive?

    Technically there is no "hard drive" in the Retina MacBook Pro, as all models come with "flash" storage which isnt a "hard disk drive." So if you are wondering why you are not hearing classic hard drive chatter and spin-up sounds then this is the reason.
    Other than that, logically the devices are treated the same, so as Kappy mentions you just have to enable it on your desktop or go to your computer name in the Finder sidebar under "Devices" or otherwise go to the top level of the system's folder structure to reveal any mounted volumes, including the internal drive.

  • Where is the hard drive on hp mini 1000

    where is the hard drive on hp mini 1000

    Hi,
    You machine can have 1 of these:
      8-GB solid-state drive 
    16-GB solid-state drive 
    60-GB, 4200-rpm hard drive
    and they are tricky ones in a tricky place. You can find them using the following book (pp 42 & 43 under Mass Storage Devices):
      h10032.www1.hp.com/ctg/Manual/c01631228.pdf
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Where's the old driver? I don't want e-print!!

    Need to re-install my printer driver, as my laptop had to be rebuilt.
    BUT I can only now find the e-print driver for HP Photosmart 5510 - where is the usual driver??
    The e-print isn't working very well for printing, and also can't seem to use it to scan documents -
    I'm a bit annoyed!! Have had to download the e-print, struggling with it not working and even working out how to contact hp has been very difficult involving me logging into this forum...?? 
    Where is the usual driver is the only thing I want to know. Simple really.
    Paula

    Hi Paula,
    Welcome to the HP Community Forum.
    I am afraid that there is no "old driver".  Once a new driver is released, the old software is removed.  While you may not be the only one to bemoan the fact, it is still the case.
    ePrint is separate from the Full Feature Software.  You do not have to use ePrint at all -- in fact, one has to register the printer with HP Connected to connect the printer to the Internet; it is a separate and deliberate act and not one associated with the everyday use of the printer.
    You did not mention your Operating System -- therein might lie the issue; are you using an unsupported Operating System?  For example, are you using  Mac Yosemite?
    Several recent Windows and Mac Operating Systems do provide the Full Feature Software for this printer:
    HP Photosmart 5510 e-All-in-One Printer - B111a Drivers
    For recent versions of Windows the following may be helpful.
    General Instructions to Install the Printer Software
    Reminder:
    In most cases, the Solution Center has been replaced by the Printer Assistant.
    The Printer Assistant shortcut will be installed on your Desktop during the last part of the installation.
    Windows Operating System:
    Create Restore Point:   Create a Restore Point – Win7 OR  Create a restore point Win8
    Open HP Drivers & Downloads
    Enter your Printer Model information
    Select your Printer from the “Results” list
    OR
    Open HP Photosmart 5510 e-All-in-One Printer - B111a Drivers
    Enter your Operating System in the Drop-down menu
    Click NEXT and Scroll down
    Look for category Driver - Product Installation Software
    Select the Basic Driver, e-print, or Full Feature Software
    Save the *.exe installation package(s) on your computer
    The file(s) will likely save to the "Downloads “folder.
    Be sure to look for Updates as needed for your installation. If available, you may download the Print and Scan Doctor and / or other programs from Category – Utilities.
    If you have ‘Admin’ control, you may highlight the package and “double-click” to install it, else Right-Click, Select run as Administrator and install.
    NOTES: 
    Look at the bottom half of the main webpage for your printer for helpful videos to assist with the installation of the printer software!
    Scroll the video list back and forth until you find the video that most closely matches your situation.
    If using a USB connection: Download and install the driver software before connecting a USB cable.
    Ethernet: Connect the printer to the network and (Optional) assign the printer an IP address at the router. Once the printer is connected to the network, be sure the printer is switched on and then install the printer software.
    After the initial installation is complete and working, check / install Category - Update
    There is valuable information at the support website, including sections for Manuals, Troubleshooting > How-to, Troubleshooting > Solve a Problem, plus alerts and notifications for your printer.  Be sure to take an extended look at what is available.  Bookmark the page.
    ============================================================================
    After you install the Full Feature Software...
    The Printer Assistant shortcut on your Desktop may provide what you need to Scan a document or image:
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • Where is the hard drive located on a 13" Macbook Pro Early 2011?

    Thinking about upgrading, just wondering where the hard drive is located?  I've read lower left and lower right?
    Thanks.

    depends where you're looking - it's on the lower right if you're looking at it from the top.
    it's on the lower left if you flip it over - bottom side up

  • Acrobat Pro installed on a Windows 2003 32bit server - where's the 64bit driver?

    Hello.
    I'm still newbie with Acrobat Pro so please bear with me if this is a silly question.
    A prospect of ours installed the TRIAL version of Acrobat Pro Extended on a 32bit Windows 2003 server and everything went fine; this server "serves" a number of Windows 7 64bit boxes which are supposed to share the PDF Printer created on the Win2003 server during the installation.
    Problem is that when the printer gets shared and clients try to install it, the 64bit driver could not be found.
    The customer tried to install the 64bit driver on the Win2003 box but he does not know where to find the correct .INF file for 64bit windows client.
    Thanks,
    Rob

    Two facts for consideration. As I understand it the trail only comes in 64-bit. Don't know for sure since I have never downloaded it, but that is a faint memory.
    More importantly, read the EULA carefully before you purchase for the type of application you listed. The general EULA does not allow the use of Acrobat on a server in the manner you have indicated. You have to purchase Acrobat for each machine, not a  server. You may have enough that need to use the product that a volume license is in order -- contact Adobe for that. In the meantime, use the Acrobat Trail to test the features and such to be sure it meets your needs (other than the server use).

  • I have lion.  where is the hard drive? stupid question.  i know.

    hi, i have snow leopard but have just purchased macbook pro with lion.  where can i find the hard drive?  with snow leopard you just go to a finder window but lion doesn't have it listed there?  i need to upload a color profile, etc.  the directions tell me to go to the hard drive first, then library>colorsync>profiles....and i could do all that if i could complete the first darn step!!!  thank you community.

    Make sure that this option in Finder's preferences is checked:

  • Where is the basic driver for C4580 under Windows 7 64-bit?

    I've upgraded my PC and I'm installing a fresh copy of Windows 7 64-bit. My printer is the HP Photosmart C4580. In the support section of the HP support site, only the full software is available for download -  PS_AIO_04_C4500_USW_Full_Win_WW_130_140.exe. There is a tempting message saying the basic driver is "available as a separate download named HP Photosmart Basic Driver", but I can't find it. I've even had a trawl through the HP FTP site! I really only want the basic driver. I certainly don't want all the other stuff that the full version brings - particularly the Yahoo toolbar for IE! Does anyone know where the basic driver can be found?? Thanks in advance. 

    That is not true at all. When you try to use that install package there is no option to just install the drivers without the other garbage. I just want the driver for the Photosmart d7260 but NO, that's too hard for HP to understand that people exist that don't need to be babied through installing drivers. I don't need you to hold my hand just give me the file I need to try and make my printer work again.

  • Where has the hard drive gone after installing lion?, where has the hard drive gone after installing lion?

    I'm looking in finder but can no longer see the hard drive. Where has it gone to?

    If I understand correctly, you can edit what is shown in the side bar within the "Finder Preferences".
    under the "sidebar" tab tick the boxes of the things you want to be shown in the side bar of Finder.
    under the "General" tab tick the boxes of the things you want to be shown on the desktop.
    Hope this is what you are after and this helps.

  • Where is the iCloud Drive on iPhone?

    I thought there was going to be some sort of iCould Drive viewer (like the one in the demo of IOS 8) on the iPhone and iPad, like I have for Dropbox.  If there isn't, why would I get rid of Dropbox?

    I have Yosemite on my Macbook, it has a viewer for all files.   There must be an update coming for the iPhone after Yosemite goes GA because they advertise the fact that you can... "Store any file in iCloud Drive.  Then find it on any device. Welcome to your place in the cloud. With iCloud Drive in the Finder, you have a folder where you can store all types of files, organize them the way you like, and access them from all your devices." http://www.apple.com/osx/preview/apps/. 
    Hopefully that means viewer capability on phone, otherwise you couldn't organize or access text or PDFs.

  • Where's the SATA Driver for 64-bit???

    Hi there, i have a MSI Board for dual Opteron, and also got the new Windows XP 64 bit (Opteron edition) to try, but the problem gets big is were the hell im gonna put SATA drivers during the windows installation, where there is no 64 bit driver.
    Im very disapointed with MSI and VIA Partner, by building Motherboards for Opteron/Atlhon 64, and not giving a damm good support for the upcoming 64 bit platform.
    The way i see is either they are laisy or they took a the oportunity to make money by just selling lies.

    Quote
    Originally posted by Bas
    Hi,
    That's a bit of a problem at the moment.
    Very little manufacturers make Win-64 drivers at the moment as the software isn't released yet.
    I'm sure this will change very soon, but for the moment you have to live with it.
    As far as I know there are only nVidia and Adaptec drivers, maybe a few more, but there is very little hardware that has Win-64 drivers if they are not included with Win-64.
    Be patient, they will all come when the platform is released by Microsoft.
    Im afraid I side with the original poster, you are offering for sale the skeleton for a 64 bit system; or get off the bloody pot.  By which I mean, If you plan to offer a 64 bit product, support it.  MSI have disappointed me with their failure to release regular bios updates or allow access to beta level drivers/bios for those who have a genuine interest in pushing the boundaries.  Why should we be patient when we have shelled out good cash for a motherboard upon which to run a 64bit platform.
    Though, admittedly, responsibility for driver release falls with the manufacturer of the chipsets, not the motherboard and the original posters critiscism was best directed to VIA or Promise.
    Personally, I use linux; so except for ATI and Atheron failing to support 64bit; I have a complete 64bit system functioning well without need for binary driver support.  My only gripe is MSI's unfathomable tardiness in keeping up with BIOS upgrades for their 64bit products.
    Failure to provide drivers for an OS which is already in late beta (as That Crud From Redmond(tm) 64bit is) testing constitutes a fumble of herculean proportions.
    3 months ago, I was an MSI zealot; swearing by their products; however, watching *ALL* other 64bit via chipset mobo manufactures eclipse them with bios support, documentation and drivers, I am getting more and more keen to ditch the k8tneo and write it off as a bad idea.  I am consistently frustrated by the technical support departments ignorance of the Athlon64 erratum, their poor email responsiveness and general lack of support for amd64 architecture.
    Perhaps I need to take a deep breath and start working on stabilising a different system...  
    err!
    jak

  • Where are the printer driver files?

    I'm very new to Apple. I've installed a printer driver for a new printer, but don't know where the system has put it! I can't install the printer as it's not in the list of available devices. Any help for this idiot gratefully received.

    If you're having troubles, maybe this link will help.
    http://www.laserightwa.com/hp-2600-color-laserjet-mac-os-x-leopard-installation
    ~Lyssa

  • Where is the iCloud Drive app icon (folder) in iOS 8? Like the one the show on their website.

    I am running Yosemite on my Macs and updated to ios8 on all of my iPads and iPhone. Yet, I have found no way to access my iCloud Drive folder on the mobile devices. The Apple website for iCloud clearly shows iOS devices viewing an iCloud drive folder with end user customized sub-folders. I called tech support and they agreed that that's what the website was showing but informed me that as iCloud Drive and ios8 are so new they did not know yet how to set them up. I arrange my files by project not program and I need to view PDFs and other non iWork's files. Does anyone out there have a clue? Thank you.

    I'm not using it, but my understanding is that you can only access iCloud Drive documents on an iOS device from within an app that is iCloud Drive compatible.  At least at the present time, there isn't an iCloud Drive app for an iOS device that provides general access to documents.  See http://www.imore.com/icloud-drive-clearing-up-confusion.

Maybe you are looking for