JDBC drivers for  postgres+classpath for windows

I've written an application for university last year, that connects to a postgres database. It worked perfectly on the Debian, but I'm trying to run it on Windows 2000 now.
I've downloaded the driver http://jdbc.postgresql.org/download/postgresql-8.0-311.jdbc3.jar but now what do I need to write in the "Class.forName(String name)" line , as I've put the jar in c:\ ?
Other question while I'm typing : my other java applications run correctly althought no classpath variable exists in the system. How can I set it easily and how can I add the postgres drivers to it ? ( I know how to under Linux, not windows )

You write Class.forName() using the name of the PostgreSQL driver class, just like you always do.
As far as classpath goes, you set that the same way, too: using the -classpath option when you run java.exe.
You shouldn't have a CLASSPATH variable in the system. One size does not fit all. You should know how to set it every time you compile and run using the -classpath option for javac.exe and java.exe. Read the javadocs for these tools.
%

Similar Messages

  • JDBC Drivers for Windows 2000

    I am new to JDBC and relatively new to Java. I am trying to set up my environment to connect to an Oracle database and am running Windows 2000 Professional. I need advice on what driver I need to install and where to get it. Have looked at Oracle but they only offer drivers for Win NT. Don't want to pay for it either!
    Thanks in advance

    Anything that runs under Win NT will run under Win 2000.
    Search the internet for free JDBC drivers - it might turn that you get what you pay for, however. If your site has an Oracle database then it probably has a support contract - check with your admin.

  • Jdbc thin drivers for windows 95

    Where can I find jdbc thin drivers for windows 95 for Personal Oracle 8.0. Thanks for the help.
    AP

    The thin driver is for the most part OS and RDBMS independant so any of them should work. The problem is more likely to be that you do NOT have a TCP/IP listener running on Personal Oracle (it doesn't have a listener at all by default).

  • JDBC Drivers for Linux

    How come Oracle's web site only has downloads for NT and Solaris. Where do I get the latest JDBC driver for Linux?

    You should be able to use clases111.zip from AIX or NT with your
    Linux client, just copy the file, and add it to your CLASSPATH.
    I'm using classes111.zip from AIX (8.1.5) on NT and Win95
    clients.
    This will work for the thin client, the oci8 needs SQL*Net
    (and some more support libs.) installed to work
    Hilsen Jan
    Greg Patrick (guest) wrote:
    : Well that's no good! I don't have the database client
    : for Linux. Our 8.0.5 DB is on AIX. We have Windows NT
    : 8.0.5 client CD's. I shouldn't need an entire 8.0.5
    : Linux client installation just to use JDBC, should I?
    : JDBC drivers are available for download for NT and Solaris,
    : why not Linux?
    : John Salvo (guest) wrote:
    : : They are included with the 8 and 8i installations.
    : : Greg Patrick (guest) wrote:
    : : : I can't find any JDBC drivers for Linux on the Oracle
    : Technet
    : : : site... It seems very strange that Oracle would have an
    : : : 8i database for Linux but not have JDBC drivers. Is this
    : true?
    : : : All I want is for a java program on a Linux machine to be
    : : : able to use the OCI drivers to talk to the database on
    : another
    : : : machine. Even JDBC thin drivers would be better than
    : nothing.
    : : : Where are they?
    : : : Thanks,
    : : : Greg Patrick
    : : : http://www.abe.com
    null

  • How can I install JDBC drivers for Oracle?!?....

    i have a program that has this line:
    import oracle.jdbc.pool.OracleDataSource;
    that gives this error when I compile it:
    package oracle.jdbc.pool does not exist
    So I think I need to install JDBC drivers for Oracle. (?)
    I went here: [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_111060.html]
    and downloaded the files for JDBC Thin.
    Then I followed this: [http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/111070_readme.html]
    by entering these commands (I'm using Ubuntu):
    export CLASSPATH=$CLASSPATH:/path/to/files/ojdbc6.jar
    export CLASSPATH=$CLASSPATH:/path/to/files/orai18n.jar
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/files
    When I type echo $CLASSPATH I can see that those commands worked, but it hasn't made any difference when I try to compile.
    I still get the same error. Is it because I didn't do anything about the .so files? The readme page didn't mention them in the installation section.
    Please help! I am so stuck...

    I don't think you need the shared libraries (.so files) and given what I saw when I glanced at those pages, I don't think they'd even work for you, although maybe I just didn't read enough of it.
    What happens when you type
    javap oracle.jdbc.pool.OracleDataSourceon the command line?
    How are you invoking javac? Are you perhaps passing a classpath argument?
    Are you sure that the path to the jar files is correct? Are the paths relative?

  • HP ZR2740w drivers for Windows 8.1 x64

    Where can I find the drivers for windows 8.1 for this monitor?
    Please note that the Win7 x64 drivers are not accepted by Win8.1 x64.
    Adding it as legacy hardware with the INF provided by the Win7 install program doesn't work either.
    Please help! I bought these two monitors just a year ago and now they're useless already!

    Hey there. I'm also looking for the same. Was there ever anything released?
    Thanks!

  • Re: HP 15-d053sr drivers for Windows 7 x64 not installed

    Hello!
    I have the same problem!!! 
    Notebook HP 15-d053sr, Product No. F7R72EA#ACB, Serial No. [edited by Moderator], Bios Version F.11
    On clean install Windows 7 x64, Can't install all Chipsets, USB 3.0 and Video drivers! Error message: "This computer does not meet the minimum requirements for installing the software"
    On clean install Windows 8.1 x64 Can't install "IMEI" (sp64344) driver and maybe more!
    HP Support Assistant find only 4 drivers (Atheros Bluetooth, Wireless LAN, Synaptics TouchPad and Realtek Audio drivers)...
    Need working, supported, compatible drivers for Windows 7 x64!
    Please HELP!!!

    Hi @Ainars_LV ,
    Thank you for visiting the HP Support Forums. I'm sorry to inform you that your post has needed some editing to remove personal information such as the Serial Number in your Post. From our Rules of Participation:
    Protect privacy - yours and others'. Don't share anything about yourself that you would not want to see on a road-side billboard. Don't post contact or other personal information-your own or anyone else's-or any content that you receive in one-to-one communications without the author's consent. For example, don’t post your computer’s serial # or contact information publicly, and do not allow someone you don’t know to remotely take control of your computer.
    If you need people to contact you directly, either ask them to send you a private message or subscribe to the thread so you will be notified when there are replies. You may also click on your name anywhere in the forum and you will be taken to your profile page, where you can find a list of threads you have participated in.
    Sharing personal email addresses, telephone numbers, and last names is not allowed for your safety. If you have any questions feel free to send me a private message in reply.
    Thank you
    George
    I work for HP

  • My hp M6 k015dx drivers for windows 10

    My hp M6 k015dx  all drivers for windows 10.... 

    VvEaKy_VvaQaR wrote:
    My hp M6 k015dx  all drivers for windows 10.... 
    Hi,
    Too early to ask, they may come one day. HP people are testing new Windows 10 like you and me and they will anounce a list of machines which support Windows 10, similar to Windows 7, 8 and 8.1 (note: not all machines will support Windows 10).
    Please use Windows 10 updates, it's very good on my machine, only 1 driver missing and I won't bother to find it now because it MAY come at a later date (or it may not come at all. That's life).
    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.

  • HP 17-f028ca Drivers for windows 7

    Hi.
    I  bought recently a laptop model HP 17-f028ca, it comes with Windows 8, but i would like to downgrade
    to Windows 7, when i can find drivers for win 7 for this model?.
    I search thru the official web page but only exist the drivers for  windows 7.
    Thanks
    Alex
    This question was solved.
    View Solution.

    Forget captain unhelpful there.  Just because MS is using it's dwindling weight to flog people to Win8 because you'll eat what they feed you doesn't mean you can't cook your own food with flavours you enjoy.
    I'm only starting to track down drivers so..the list is incomplete.
    Network card:
    Wireless: Realtek RTL8723BE
    found here:
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?cc=us&lc=en&softwareitem=ob-132572-1
    Wired Nic: Realtek RTL8101E/RTL8102E
    found here
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?cc=us&lc=en&softwareitem=ob-59636-1
    AMD/ATI drivers account for the bulk of the system:
    Motherbard is HP 226a running on the AMD KernCZ chipset.
    Download  BOTH the AMD Catalyst driver && the optional downloads (which I missed the first time).
    http://support.amd.com/en-us/download/desktop?os=Windows+7+-+64
    They will install most everything else like Video and Audio
    Video: Radeon APU A4-6000 with R4/R5 Graphics
    Audio: ATI/AMD Kabini - High Definition Audio Controller
    USB

  • HP DesignJet 9300 drivers for Windows 8

    As it seems, there haven't been released any drivers for Windows 7, so I am wondering, if anyone knows, is it to expect that they will be developed for Windows 8.
    It is preety anoying to have such a good and reliable A3 printer and still depend on Windows XP OS.
    Thank you.

    Hi,
    The good chance is NO, no support for Windows 7 will be translated to no support on Windows 8. It is not on the following list:
       http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c03168175#N1754
    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.

  • HP PSC 1400 Drivers for windows 7 Professional X64 (bit) problem

    I have downloaded full printer software and drivers for Windows 7 Professional 64-bit from HP site- but nothing so far has worked I have tried several times, neither i can locate any driver that will work for it, even after attempting to install from the HP program listed for my OS and this printer.Every time at the end of installation it installation stuck at a message configuring printer and it keep saying that for hours and do not finish. Finally I had to terminate the process manually to get out of it!   Please Please Please help!

    Suhail wrote:
    I have downloaded full printer software and drivers for Windows 7 Professional 64-bit from HP site- but nothing so far has worked I have tried several times, neither i can locate any driver that will work for it, even after attempting to install from the HP program listed for my OS and this printer.Every time at the end of installation it installation stuck at a message configuring printer and it keep saying that for hours and do not finish. Finally I had to terminate the process manually to get out of it!   Please Please Please help!Which PSC 1400 are you using? There a few different models: HP PSC 1402 All-in-One PrinterHP PSC 1410v All-in-One PrinterHP PSC 1410xi All-in-One PrinterHP PSC 1417 All-in-One PrinterLet me know which one so I can get you the proper download.Thanks,Sean

  • HP Laserjet 1010 drivers for windows 8

    Hi sir,
    I have printer hp laserjet 1010 i need drivers for windows 8 please help me i can't find that drivers in hp website. 
    Regards,
    Ali

    Hi Ali,
    I am sorry to inform you, the printer is not supported on Windows 8.
    You may find this information listed below:
    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/setupInstallDisplay/?sp4ts.oid=3...
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • HP PSC 1100 drivers for Windows 7

    Are there already HP PSC 1100 drivers for Windows 7?
    I cannot use the scanner with my new Windows 7 machine.
    Thanks!

    The PSC 1100 drivers should be pre-installed on Win 7 itself. If just plugging in the printer doesnt work, then go to the Devices window, click on Add A Printer, and when you come to the drivers window, click on Windows update to get the latest drivers from Windows update. This is a legacy product, so HP most likely wont release software and drivers separately.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"
    I am an ex-HP Employee.

  • Hp compaq nc4200 drivers for windows 8 iam very sad because am not found thise drivers

    hp compaq nc4200 drivers for windows 8 iam very sad because am not found thise drivers in any sits please anser me quq
    thanx

    Hi,
    Besides britishdhez's suggestion, we also try to get your apps and devices working in
    Windows 8.1 in compatibility mode:
    Get your apps and devices working in Windows 8.1
    http://windows.microsoft.com/en-IN/windows-8/get-apps-devices-working
    Karen Hu
    TechNet Community Support

  • I have a 2009 macbook pro with os x10.9.2 and can't find drivers for windows

    i have a 2009 macbook pro with os x10.9.2 and can't find drivers for windows. i trying to install windows using bootcamp but does not allows me to download the drivers..

    From the system requirements page: http://support.apple.com/kb/HT5634 for your computer
    MacBook Pro
    (13-inch, Mid 2009)
    4
    4
    DVD
    DVD
    DVD
    MacBook Pro
    (15-inch, 2.53 GHz, Mid 2009)
    4
    4
    DVD
    DVD
    DVD
    MacBook Pro
    (15-inch, Mid 2009)
    4
    4
    DVD
    DVD
    DVD
    MacBook Pro
    (17-inch, Mid 2009)
    4
    4
    DVD
    DVD
    DVD
    MacBook Pro
    (17-inch, Early 2009)
    4
    4
    DVD
    DVD
    DVD
    The drivers are located on the OS DVD that came with your computer.

  • Satellite A135-S2276 - can't find drivers for Windows XP

    Hi! I can't find drivers for windows XP to this notebook. Do anyone know where I can find it?

    Hi stalker (what a crazy nic)
    The Satellite A135 is not known to me but it looks like the US model.
    Did you take a look on the Toshiba US website???
    Please check this link:
    http://www.csd.toshiba.com/cgi-bin/tais/su/su_sc_home.jsp
    Its a Toshiba US driver download page.

Maybe you are looking for

  • Numbers Help Please

    Hey I am just starting to use numbers and I need helping figuring something out. When you are working on a spread sheet and you are typing in one of the columns, how do you get the column to expand with the more that you write in that column? Thanks

  • Only way to turn on nano is to reset?

    I bought a refurbished iPod off of Appple's store and if I leave it off for more than an hour (holding PLAY then setting HOLD) I have to hold MENU and SELECT for 10s before it will turn on again. Also, when it's in this state where I can't turn it on

  • Can I use SYSDATE in the WHERE clause to limit the date range of a query

    Hi, Basicaly the subject title(Can I use SYSDATE in the WHERE clause to limit the date range of a query) is my question. Is this possible and if it is how can I use it. Do I need to join the table to DUAL? Thanks in advance. Stelios

  • Cahnges Alternate Document type

    Hi Friends, I have maintained an alternate document type ZMMF in OR10 Sales Order. In Sales order it is showing both options i.e. ZMMF and OR10. But when I am going to change this, system is prompting an error as below: Changes to sales document type

  • 1 Bookmark of 100 others opens in the bookmark panel - fix ?

    Using XP SP-3 with FF 30 now - After 29.0 update - when I click on one of my most used bookmarks - it opens in the bookmark panel unless I right click it to open in new tab or new window. If it opens in a new Window it opens in the proper way - No ot