Running a Java Program

后端 未结 5 1117
没有蜡笔的小新
没有蜡笔的小新 2021-01-21 06:38

I looked at some other SO questions, didn\'t find anything that solved my problem... I have a Main.java file (below) and a OthelloLib.jar file without associated source files.

5条回答
  •  旧巷少年郎
    2021-01-21 07:07

    Did you specify the classpath when you call your program?

    Something like the following might work:

    java -cp .:OthelloLib.jar Main
    

提交回复
热议问题