Question : Connected Eclipse to OracleXE

I installed OracleXE on a WindowsXP computer, together with Eclipse.
I want to connect to the database using Eclipse
I can connect fine to the database using Toad

I went to Data Source Explorer/Database Connections:

I entered the following:
SID: db
Host: localhost
Port number: 1521
User name and password according to my database

The user generated URL was jdbc:oracle:thin:@localhost:1521:db

When I do test connection I get ping failed.
java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.net.FactoryURLClassLoader.loadClass(Unknown Source)


I first of all set my class path to include the ODBC driver
PATH=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;PATH=C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

I then tried moving ojdbc14.jar to the \web-info\lib directory of my project

But this didn't help!

Best wishes

Gordontm

Answer : Connected Eclipse to OracleXE

Sorry, miss read question, same action different place:  From the file menu:

Window > Preferences -> Data management -> Connectivity > Driver Definitions -> Oracle  XXXX -> Edit

Random Solutions  
 
programming4us programming4us