I am trying to compile code with javac using the ojdbc6.jar from oracle.
I have my source in 'src' my .class in 'bin' and my 'jar' in includes.
my current javac command is:
javac -cp ".;./includes/ojdbc6.jar" src/*.java -d bin
this worked until I imported the driver in one of my source files. Now I get:
javac -cp ".;./includes/ojdbc6.jar" src/*.java -d bin src/OracleSingleton.java:1: package oracle.jdbc.driver does not exist import oracle.jdbc.driver.OracleDriver;
I am sure the problem is with my classpath, any idea how to fix this. I have manually checked to see whether the file is there and it is.
also seeing as I haven't got this far I might as well preempt the next question, do I have to point to this jar when running the program too? if so how.