0
$ $CLASSPATH
$ $ source .profile
$ $CLASSPATH
> bash: :/usr/java/connectors/mysql-connector-java-5.1.23-bin.jar: No such file or directory
$ /usr/java/connectors/mysql-connector-java-5.1.23-bin.jar 
> no main manifest attribute, in /usr/java/connectors/mysql-connector-java-5.1.23-bin.jar

What I'm having trouble understanding is, when I run it from $CLASSPATH (to see if it has been set) why it's not being detected. Shouldn't it be the same if I type it in? I'm getting two different results.

the connector is 0777 with owner root:root.

James Bone
  • 111
  • 5

1 Answers1

0

While it doesn't solve the problem as I'd like I have found a solution.

In this instance I'm trying to add a JDBC connector so I can use it in my Java programming. In Eclipse I've been able to go configure build path -> add variable -> configure, then define CLASSPATH as the .jar file.

If anyone still has an answer for the posted question I would be very interested to know.

James Bone
  • 111
  • 5