Re: Possible JDBC installation or usage problem in OS X




A: Because it is harder to follow.

Q: Why shouldn't I post my reply above the original text?


barry_normal wrote:
(top-posting corrected)

Ian Wilson wrote:

barry_normal wrote:

I'm having a terrible time trying to use the JDBC in os x.


Then I've opened my etc/profile file and added the location to
the classpath like this:

PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/mysql-connector-java-3.1.14/mysql-connector-java-3.1.14-bin.jar"
export PATH - This might be the problem but I couldn't find an explicit example of how to do this...


CLASSPATH is not the same as PATH.

So should I just alter that same file to include the following?

CLASSPATH="/usr/mysql-connector-java-3.1.14/mysql- connector-java-3.1.14-bin.jar" export CLASSPATH

Yes. Why didn't you just try it?


Does this make it the classpath Java apps will use?

Usually.

Google for "Java classpath" then follow the sun.com or Roedy Green links. Google is useful, I recommend you try it occasionally :-)
.



Relevant Pages

  • Re: Possible JDBC installation or usage problem in OS X
    ... Ian Wilson wrote: ... CLASSPATH is not the same as PATH. ... Does this make it the classpath Java apps will use? ... Google for "Java classpath" then follow the sun.com or Roedy Green ...
    (comp.lang.java.databases)
  • Re: Jboss 4.0.5, ejb3, remote client
    ... have jbossall-client.jar in classpath! ... Maybe on JBoss 5. ... But on 4.0x with ejb3 there are more ... files but doing a google on this and sifting thru the material leads to ...
    (comp.lang.java.programmer)
  • Re: Jboss 4.0.5, ejb3, remote client
    ... I have not used the EJB 3 features, but it used to be enough to just ... have jbossall-client.jar in classpath! ... files but doing a google on this and sifting thru the material leads to ...
    (comp.lang.java.programmer)
  • Re: log4j, NoClassDefFoundError
    ... >> As you might in a technical article, directed to native English ... >> speakers? ... >> 'recommend against'/'not the preferred way'.. ... > use the CLASSPATH environment variable", ...
    (comp.lang.java.programmer)
  • Re: log4j, NoClassDefFoundError
    ... >>>Add the jar to the classpath, either by adding it to the CLASSPATH ... > CLASSPATH environment variable, but they are saying that using the ... 'recommend against'/'not the preferred way'.. ... (I am a native English speaker, ...
    (comp.lang.java.programmer)