All,
I'm having issues running a simple java program on the linux command line.
When I run:
java -server -cp ./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar -jar PaymentProcessor.jar
I get "java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/pmtdb"
When I run this command (which works on the windows command line)
java -server -classpath ./classes;./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar paymentprocessor.PaymentProcessorServer
I get " ./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar: Permission denied"
So I do a chmod +x on mysql-connector-java-5.1.12-bin.jar and get the following strange error mesage when I re-run:
./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar: line 1: PK: command not found
./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar: line 2: META-INF/þÊPK: No such file or directory
./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar: command substitution: line 3: syntax error near unexpected token `=F0Uû4ð:YÐ0ø¶Ë¶ý
þ%ië'
./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar: command substitution: line 3: `ª±,é?îo$qªÙ
AÏâÜðÌze±7oY¶N&(=F0Uû4ð:YÐ0ø¶Ë¶ý af|ßkªAV(Si´&[².Ëf±1Yñ¶¶HHéÔK
þ%ië|²=ðî{({
Ùõ"ONu_1V¹
HöÎP:8g"óâÉGD¨ówÅÛçhùNjkµäÓ]§#Öbcùå<#µlG¯¹ð1¯JÛ[ÞYä£c.-Ó¦tÛõÌ' ÝoÚ0Àß#°xÙ*Rªm : No such file or directory5.1.12/mysql-connector-java-5.1.12-bin.jar: line 3: ¸ÍgNMETA-INF/MANIFEST.MF
./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar: line 17: syntax error near unexpected token `)'
./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar: line 17: 2R<@Ë[âX$com/mysql/jdbc/BalanceStrategy.class]½NÃ0
Ï-¡Ca© H #22¹®9¸vH\¼ÀC¡:A¢(ÃýÙçûóýóù`)Ã
á z»óÎiw{-ßðM[¿[^¬W
á0- /×·ÒJ§Ë÷Òeå
ü|åÂÔá??É2}}|¸úí-RÂdÑ(]vP3EÎü¶RúÞXMýÕY¨dÐy;ïÌ WÃpÞ7sþ¼*b-Âå gÑíê~â^Ýýd/â¯0qwF !Áa¤q¤$,ÆQ¼p¼PK'
[mhopper@msv-app0 PaymentTest]$ 1;1;112;112;1;0xPuTTYPuTTYPuTTYPuTTY
Does anyone have any idea what I need to do to get MYSQL to be recognized when running java in Linux?