LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-19-2007, 08:35 AM   #1
adilturbo
Member
 
Registered: Jun 2006
Location: morocco
Posts: 195

Rep: Reputation: 30
how to install an oracle 10g jdbc driver in eclipse IDE?


hello nice people,

in advance,sorry if it is already posted or if it is a simple question.

i am (new) using eclipse 3.3 as IDE, under win XP , and oracle 10g as DBMS; i want to access data stored in the database using java programs.

i think i should install the oracle jdbc driver(JAR) in eclipse.

i downloded the class12.jar file,but i do not know how to install it.

please i need some help concerning the installation(jar), and a simple example to connect to my database.

many thanks.
 
Old 07-20-2007, 07:32 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

A simple google search turned up this:
http://www.ugrad.cs.ubc.ca/~cs304/20...romEclipse.htm

You should be able to find lots of similar links.

The basic steps are:

1. Make sure you can connect to the Oracle database (i.e. that you have a valid logon and password, correct permissions, network connectivity, and the correct environment).

2. Download and install the JDBC driver on the same PC as you're running Eclipse (Linux or Windows - it doesn't matter)

3. Go into Eclipse, Package Explorer, Add external .Jar's, and add your JDBC driver

4. Write a simple "hello world" Java program that uses JDBC and talks to your database
For example:
http://www.macs.hw.ac.uk/cs/online/3ni3/5/8.htm
... or ...
http://www.oracle.com/technology/sam...sic/basic.html
... or ...
http://java.sun.com/docs/books/tutor.../complete.html

5. Run your program (presumably from Eclipse, or from a command prompt)

'Hope that helps .. PSM
 
Old 07-23-2007, 05:08 AM   #3
adilturbo
Member
 
Registered: Jun 2006
Location: morocco
Posts: 195

Original Poster
Rep: Reputation: 30
hello again,

thank you for the halp.

i did already , i just added the jar to eclipse, i do not know that it was simple; and now i can connect to the database.

thanks again.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install Oracle 10G R2 in OpenSuSE 10.2 64 bit? filex Linux - Software 13 04-10-2009 04:01 PM
Is it possible to install Oracle 10g (10.2) on Debian Etch? arobinson74 Debian 1 04-09-2007 08:24 PM
The installation hang there when I install Oracle 10g. g18397 Linux - Software 2 05-23-2006 12:58 AM
oracle jdbc driver for jsdk 1.5 beta? Ikebo Programming 0 10-17-2004 02:13 PM
Install Oracle 10g on Fedora Core 2 hfcmit Fedora 0 10-09-2004 09:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration