问题
I have type the following on my windows 7 CMD:_
javaws -viewer
But the following error was raised:- "Windows can not find '\bin\ssvagent.exe' ", so what is going wrong?
回答1:
There are two easy ways to run your command properly:
1) For a permanent fix you need to add the java bin folder you your windows calsspath. Then when you use the javaws command it will know where the ssvagent.exe file is located.
2) If you only need to use this once or twice then you will need to naviagte to the jre bin folder, using: cd "[path to
jre
bin folder]"
example: cd "C:\Program Files (x86)\Java\jre7\bin"
Once you have done that, you can use your command: javaws -viewer
More info about adding java to your classpath:
- http://www.ehow.com/how_7166816_set-up-java-classpath-windows.html
- http://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/classpath.html
If for some reason the above options don't help, then you need to reinstall java
来源:https://stackoverflow.com/questions/12301643/windows-can-not-find-bin-ssvagent-exe