문제

so i have stored my jar file in C:\Java\jdk1.6.0_26-32\jre\lib\ext

is the following command correct:

Java -cp C:\Java\jdk1.6.0_26-32\jre\lib\ext\bsh-2.0b4.jar

It does not seem to run the jar file

PS: please provide helpful notes instead of simply downvoting the question, i'm still new to this site. thanks.

도움이 되었습니까?

해결책

A search for "running a jar file command line" yield this link (http://www.javaworld.com/javatips/jw-javatip127.html) saying to run this command: java -jar myjar.jar

Running java -help yields more information, and online documentation will explain all your command-line options to you (such as Oracle's java command documentation).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top