• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting up a JDBC connection

 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
  • 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

 
Vijitha Kumara
Bartender
Posts: 3917
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • 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
  • 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: 3917
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • 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>/.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic