Right. Rich pointed out a week or so ago that you can't use -jar
together with -cp. That means you can't get around specifying the name
of the main class you want to run.

On Wed, Dec 3, 2008 at 9:05 AM, Craig McDaniel <[EMAIL PROTECTED]> wrote:
>
> The classpath specified on the command line seems to be ignored for
> case #3 (using SVN Rev 1142):
>
> 1. Using clojure.lang.Repl
>
> java -cp /home/kreg/src/clojure/trunk/clojure.jar:/another/class/path
> clojure.lang.Repl
>
> Clojure
> user=> (.getProperty System "java.class.path")
> "/home/kreg/src/clojure/trunk/clojure.jar:/another/class/path"
> user=>
>
> 2. Using clojure.main explicitly
>
> java -cp /home/kreg/src/clojure/trunk/clojure.jar:/another/class/path
> clojure.main -e '(.getProperty System
> "java.class.path")'
>
> /home/kreg/src/clojure/trunk/clojure.jar:/another/class/path
>
> 3. Using clojure.main via Main-Class in jar file...ignores classpath
> on command line
>
> java -cp /another/class/path -jar /home/kreg/src/clojure/trunk/
> clojure.jar -e '(.getProperty System
> "java.class.path")'
>
> /home/kreg/src/clojure/trunk/clojure.jar

-- 
R. Mark Volkmann
Object Computing, Inc.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to