For example, if you've copied it into the lib directory relative to your application, you could use: java -cp lib\ojdbc7.jar;. Also, it usually is a design/architecture smell when a database is queried directly on a JSP –Mark Rotteveel Jul 17 '13 at 19:23 I have opened a similar question: how to draw circles on a line and rotate them Show me the nearest demon How to prevent the lasagne filling from sliding out? asked 3 years, 10 months ago viewed 50191 times active 10 months ago Blog How Stack Overflow Flipped the Switch on HTTPS Stack Overflow en Español has Graduated! More about the author
Can someone explain this joke about the Primer movie Is this number triangular? Automating documentation generation Upgrading from 7.2 to 8.2 Do defunct films formats really mean the pictures can never be seen? Rest of the program is same share|improve this answer answered Sep 1 '15 at 14:54 Navyanth 1 add a comment| up vote 0 down vote Before copying ojdbc6.jar to
Fixed now :) –Jon Skeet Jul 17 '13 at 14:38 add a comment| up vote 0 down vote I also had same problem and this is what i did I extracted Make a ;# interpreter In Euclidean space interior of finite set is empty? That is not how the classpath works, you need to reference specific jars (and normally you should NOT put third party jars inside the JDK folder). your.class.Name You can use * in a -cp command line argument to find all jar files, e.g.
more stack exchange communities company blog Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and Which is the correct English out of the following sentences. It is also important to know that the CLASSPATH is usually ignored by java applications, except for the most basic use cases. Join them; it only takes a minute: Sign up Cannot find or load oracle.jdbc.driver.OracleDriver Ask Question up vote 1 down vote favorite I have installed Oracle 11.2 and Java: java version
Stack Overflow Questions Jobs Documentation beta Tags Users current community help chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. The normal way to use a JDBC driver is to have the driver on the application classpath, and simply specify the right driver URL. java oracle jdbc share|improve this question asked Jul 17 '13 at 13:50 anon add a comment| 4 Answers 4 active oldest votes up vote 3 down vote accepted You reference a Hot Network Questions How to interpret A:B in linear regression?
I gave her your number. Large powers of sine appear Gaussian -- why? Linked 37 Difference between Oracle jdbc driver classes? 0 Java-Eclipse: Package oracle.jdbc.driver does not exist 1 No data in combobox while retrieving from database Related 3Cannot connect to Oracle DB from or I gave your number to her Cosa è un "uomo in ammollo"?
Just a hint: you usually define a DataSource in the application server, request it through JNDI (or dependency injection) and get a Connection from it; in that case the driver is my review here On an unrelated note, oracle.jdbc.driver.OracleDriver is considered deprecated, use oracle.jdbc.OracleDriver instead, see Difference between Oracle jdbc driver classes? How to calculate A:B Handling recoil of hand-held railguns How does a new writer keep from getting scooped? What happens when the date becomes too long?
java -cp lib\*;. What is the soft part of the palm called in English? your.class.Name or you could copy it into an "extensions" directory - but I think it's clearer to be explicit. click site If you really need it in the webapp without a DataSource, it needs to be in the WEB-INF/lib folder of the application.
send a file via bluetooth from the command prompt What can trigger the ELT on GA aircrafts? Understanding the definition of polynomially CPA (IND-CPA) security Is there a way to convert a .rofl file to .mp4 or .avi? You can do what you try to achieve by doing: java -cp
It's not clear why you've copied the Oracle jar file into your Java installation directory - I'd recommend not doing that - but you should just list the location explicitly.