Re: Possible JDBC installation or usage problem in OS X




Ian Wilson wrote:
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 :-)

Hello Ian,

Well, I tried googling but just couldn't find an explanation which was
more specific than just 'edit the file' not what to put in it.

Also, I wasn't sure if it could be some slight syntactical difference
which OS X exhibits in this department. All the instructions seem to
assume a Windows machine.

I did try putting the text in as above but that didn't have any effect.
Still getting the same message so I was unclear as to whether it needed
some other info in there or something I've no clue about at all.

Cheers!
B

.



Relevant Pages

  • Re: Possible JDBC installation or usage problem in OS X
    ... So should I just alter that same file to include the following? ... Does this make it the classpath Java apps will use? ... Ian Wilson wrote: ...
    (comp.lang.java.databases)
  • Re: Possible JDBC installation or usage problem in OS X
    ... Then I've opened my etc/profile file and added the location to ... CLASSPATH is not the same as PATH. ... Google for "Java classpath" then follow the sun.com or Roedy Green links. ... I recommend you try it occasionally :-) ...
    (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)