Adding jar to classpath when running from command line

前端 未结 5 1251
盖世英雄少女心
盖世英雄少女心 2021-01-02 02:43

Ok I know this question has been asked many many many times before, but I\'ve googled it and looked at examples and looked at questions on SO for the past month, and I serio

5条回答
  •  醉酒成梦
    2021-01-02 03:19

    Your problem is min separator you are using. Separator ; is for windows. On Unix systems you should use : instead:

    java -classpath "bin:mysql-connector-java-5.1.19-bin.jar" MyProgram

提交回复
热议问题