What does “java: No match.” mean?

在新裝機器上執行類似於下面的java命令,結果出現 java:No match.

通過查看資料瞭解到:原來是由於shell不匹配。需要切換bash.以前的用戶登錄的shell是ksh或csh

When running java from the command line:

java -classpath bin:pellet-2.0.0/lib/* com.stuff.MyClass argumentTextStuff

I'm getting the following reply:

java: No match.


解決方法:

 It worked when I was using a bash shell, however the * is treated differently in the tcsh shell. So we switched to bash and it works. 

類似以下的語法

chsh -s bash


google真強大

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章