Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #15816

Re: com.mysql.jdbc does not exist

From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: com.mysql.jdbc does not exist
Date 2012-07-04 19:12 -0700
Organization albasani.net
Message-ID <jt2t5g$evi$1@news.albasani.net> (permalink)
References <854027fa-a41c-4f6a-9ea1-aa9b7a311073@26g2000yqv.googlegroups.com> <ivOdnRy8v_QLIGnSnZ2dnUVZ_judnZ2d@giganews.com> <jt2ept$11c$1@dont-email.me>

Show all headers | View raw


markspace wrote:
> chalasa wrote:
>> how to you tell the particular project about the library
>
> Use the CLASSPATH.

Actually, don't. Use the classpath instead. CLASSPATH is an antipattern for 
most use cases.

> <http://docs.oracle.com/javase/tutorial/essential/environment/paths.html>
>
> <http://docs.oracle.com/javase/tutorial/java/package/managingfiles.html>

The problem with the CLASSPATH environment variable (envar) is that it affects 
*every* Java program on the system. To tell the *particular* project about the 
library, as the OP requested, you have to tell the *particular* project's 
classpath where to find the library.

RTFM. The Oracle site goes into details about the "tools" (java, javac, 
javaws, etc.) and their options.

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

RE: com.mysql.jdbc does not exist chalasa <hmwaluda@gmail.com> - 2012-07-04 17:03 -0500
  Re: com.mysql.jdbc does not exist markspace <-@.> - 2012-07-04 15:06 -0700
    Re: com.mysql.jdbc does not exist Lew <noone@lewscanon.com> - 2012-07-04 19:12 -0700
  Re: com.mysql.jdbc does not exist Roedy Green <see_website@mindprod.com.invalid> - 2012-07-04 23:41 -0700
  Re: com.mysql.jdbc does not exist Jeff Higgins <jeff@invalid.invalid> - 2012-07-05 10:42 -0400

csiph-web