can not connect to oracle from jar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vijaypalmanit
    New Member
    • Dec 2013
    • 1

    #1

    can not connect to oracle from jar

    Hi Guys,
    i have created a java application in netbeans which connect to database oracle,and populate some textfields and do some other random stuff, everything is working fine in netbeans but when i create .jar file then it is not able to connect to database although .jar is running application.

    I have already added ojdbc5.jar file in project library folder.
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Hi vijaypalmanit and welcome to bytes.com!

    This problem could have many causes, without more information we can only guess which one it may be. What I'd recommend doing is adding log output to your program (if it's not there already) and then checking the logs for any anomalies. Maybe some environment variables aren't set? Is your program accessing local files with fixed paths? Does it need libraries not in the classpath?

    Comment

    Working...