在新裝機器上執行類似於下面的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真強大