Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help locating java.sql

 
Nicholas Turner
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't find where to download the actual jar to use my java.sql method calls.

Can someone give me a link to download the actual jar? Or is this someone in my java 2 sdk and I just need to find it? I haven't written java in 5 years, so i'm really rusty.

Thanks,
Nick
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The java.sql package is part of the SDK. Just get that and you are good to go.
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to write JDBC code, you just need a jar file for JDBC driver, all other classes required is already there in SDK.
Which database you are trying to connect ? What's your issue ? And you don't need to find it. You just import the classes and if it not present in your classpath, you will get compile time error.
 
Nicholas Turner
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah im using eclipse and I found the lib I added "ojdbc5.jar" to my project. I guess i'm not referencing correctly.

Thanks,
Nick
 
Nicholas Turner
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well it finds oracle.jdbc.*

but not java.sql.*

Is there another link I have to supply to find that library in eclipse ?

if this helps my code is this
package com.rim.manager.approval;

import java.sql.*;
import java.io.*;
import oracle.jdbc.driver.*;

Everything validates except for java.sql
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So somehow you have everything on your classpath except the SDK? Have you checked if there is a system library (as Eclipse calls it) listed?
 
Nicholas Turner
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that I am developing for BlackBerry and stupid me didn't think it was a compact framework like .net

I just have to find a way for the blackberry to query the database from the phone and since the rim package only allows an SD card, i guess I have to use web services.

Thanks for the help all,
Nick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic