Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Setting up a JDBC connection

 
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

 
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • 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: 4107
72
Hibernate Fedora Chrome
  • 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>/.
 
money grubbing section goes here:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic