Michael, Itay, I apologize, that was actually an intermediate script. I also incorporated Michael's suggestion. The only thing that's different from Michael's is the addition of the bin directory. Also, my script assumes that you've set a CLASSPATH environment variable to contain the clojure jar file. This is my current script:
#!/bin/bash DP="${0%/*}" java -cp "$CLASSPATH:${DP}/clj:${DP}/java:${DP}/bin" - Dnet.sourceforge.waterfront.plugins="${DP}/clj/net/sourceforge/ waterfront/ide/plugins" clojure.main "${DP}/clj/net/sourceforge/ waterfront/ide/main.clj" "$@" -Adler On Mar 4, 1:14 am, Michael Wood <esiot...@gmail.com> wrote: > On Tue, Mar 3, 2009 at 9:14 PM, aperotte <apero...@gmail.com> wrote: > > > Hi, > > > I'm using linux (Ubuntu) and none of the above scripts worked for me. > > I added the ${DP}/bin directory to the classpath list to get it to > > work. > > > #!/bin/sh > > DP="${0%/*}" > > java -cp ~/src/clojure/clojure.jar:${DP}/clj:${DP}/java - > > Dnet.sourceforge.waterfront.plugins=${DP}/clj/net/sourceforge/ > > waterfront/ide/plugins clojure.main ${DP}/clj/net/sourceforge/ > > waterfront/ide/main.clj $* > > There are some bugs in your script. See my post in this thread from a > few days ago for > details:http://groups.google.com/group/clojure/browse_thread/thread/d5ce5ddb6... > > > P.S. - The text editor you are using for the shell script is encoding > > DOS style newlines and doesn't work on linux. I copied the text to a > > new file to get around it. > > -- > Michael Wood <esiot...@gmail.com> --~--~---------~--~----~------------~-------~--~----~ 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---