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

Path csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Lew <noone@lewscanon.com>
Newsgroups comp.lang.java.programmer
Subject Re: com.mysql.jdbc does not exist
Date Wed, 04 Jul 2012 19:12:22 -0700
Organization albasani.net
Lines 27
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>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net /hr7oR4fmE9sF1wFxgeTUUJYpjB6Ge4vkOLEGInJCJlTk1ER+ISpwd6nQfeRkiVVOainJ3swHWIwkEAEdtIXAiEajg2VPo7g9ZS2FWRHw1HvvtNAvgviS0VvLaxmhxeL
NNTP-Posting-Date Thu, 5 Jul 2012 02:12:00 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="gBFUy5GwozBq4EXpaZ6kQUMoxKyNb98GgVFdY83EsmDlQX7A0tEdWoB79xw2NySOabilJrGKnqsuUFSHgithYpRFAs3HML/OhgpxQ8e/FNZWe0ckOwyG9GChZlKfwfHI"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1
In-Reply-To <jt2ept$11c$1@dont-email.me>
Cancel-Lock sha1:pyOrY9ntrCeMvJq1nLNq2CXYRRM=
Xref csiph.com comp.lang.java.programmer:15816

Show key headers only | 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