I've posted something similar in the JDBC section, but I now realize that it's probably more appropriate here. My question is in setting up the java environment according to some books, I can create a "java_home" environment variable (I'm running Windows 2000) and place any jar files (such as from a vendor which contains a jdbc type 4 driver) into the "jdk\jre\lib\ext" and both the "javac" and "java" commands will find them. I'd like to forgo creating a classpath variable. I'm trying to create a java application, not a servlet or applet.
Hullo. IF jdk\jre\lib\ext is your compile time and runtime environment then yes, putting the jars in here will work for javac and java. However, if you are running a seperate runtime environment, which most people will be, this is probably at C:\Program Files\JavaSoft\... or somesuch, you will then need to put a copy of the jars in this jre\lib\ext directory to support runtime.
Its not what you do, its the way you say you've done it.
Joined: Dec 18, 2000
Running my Java application using the "java" command doesn't seem to work unless I explicitly put in a "-classpath" statement. I put the .jar file containing the db drivers into the \jdk\jre\lib\ext directory, but they aren't found. According to the Wrox book "Beginning Java 2" I shouldn't have to use a classpath statement.