سؤال

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