I can't seem to get EclipseLink Workbench to run correctly. I 'think' i have setup files setup correctly but obviously I am missing something...
I get two main errors.
1) cannot find teh mysql jdbc driver
2) on startup it throws a jdk error... "[: 15: /usr/lib/jvm/java-6-openjdk: unexpected operator"
Basically... workbench starts...but command line shows above error.
I try to connect to MySQL and i cannot. The JDBC driver does exist at location I specify...Netbeans can connect to MySQL etc...
Any help much appreciated. I am using LinuxMint 9 OS.
Please see my setenv.sh, workbench.sh and my LinuxMint /etc/environment file pasted below...
Thanks,
T setenv.sh:
#!/bin/sh
# User MUST set DRIVER_CLASSPATH to point to their desired driver jar(s), such as JDBC and J2C. For example:
# DRIVER_CLASSPATH=/some_dir/jdbc/ojdbc14.jar:/some_other_dir/ j2c/aqapi.jar; export DRIVER_CLASSPATH
#
# Note: DRIVER_CLASSPATH should NOT contain any classes for your persistent business objects - these are
# configured in the Mapping Workbench project.
DRIVER_CLASSPATH=/usr/share/java/mysql-connector-java-5.1.10 .jar; export JDBC_CLASSPATH
# User MUST set INSTALL_JAVA_HOME to point a supported JRE. If none
# is provided for INSTALL_JAVA_HOME then the system JAVA_HOME
# value will be used
INSTALL_JAVA_HOME=/usr/lib/jvm/java-6-openjdk/;
if [ "$JAVA_HOME" == "" ]; then
JAVA_HOME=$INSTALL_JAVA_HOME; export JAVA_HOME
fi
# User may increase Java memory setting(s) if desired:
JVM_ARGS=-Xmx256m
# Please do not change any of the following lines:
CLASSPATH=`dirname $0`/../jlib/xercesImpl.jar:\
`dirname $0`/../jlib/connector.jar:\
`dirname $0`/../../../jlib/eclipselink.jar:\
`dirname $0`/../jlib/elmwcore.jar:\
`dirname $0`/../jlib/eclipselinkmw.jar:\
`dirname $0`/../../../jlib/jpa/javax.persistence_1.0.0.jar:\
`dirname $0`/../config:\
${DRIVER_CLASSPATH}
I cannot comment on the openjdk error, but there is a space before the ".jar' in the "mysql-connector-java-5.1.10 .jar" that might have been a cut+paste error and could cause the problem with the driver. Have you tried a different JDK or is there more to the error that pops up that might help debug it?