• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting up a JDBC connection

 
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello toda I received these instructions:

See attached zip file. Expand, connect to VPN and test as follows:

>javac -cp .;lib\ojdbc14 ATTTestDB.java
>java -cp .;lib\ojdbc14 ATTTestDB


I did execute:


and received these errors:




what am I doing wrong?

I did put the contents of the zip file containing the lib folder and the classes in the Java directory. Did I do the right thing?

Thanks,
Midani

 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems couple of things are wrong here. First error tells you that the ATTTestDB class is not in your classpath. Where is this class located?
The last two tell you that "javac" is not recognized which might be that you have not set the PATH environment variable for the bin directory of the JDK installation? Do you have the source of this file to try compiling?
And don't put your/third party class files (or anything for that matter) inside JDK installation; use another directory inside your home directory.
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for your response, but I have a question. What is meant by the home directory?

thank you so much!!
 
Vijitha Kumara
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

What is meant by the home directory?


It's the user's home directory where he has all his work. In Linux this is at /home/<username>/.
 
Good night. Drive safely. Here's a tiny ad for the road:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic