@andy to deploy the WAR file , i also use Netbeans to create it with java files, the .scm scheme, files are .class files ( https://github.com/damien-mattei/Jkawa/tree/master/eu/oca/kawafunct )precompiled with Kawa scheme ( https://github.com/damien-mattei/Jkawa )and ,Bigloo scheme ( https://github.com/damien-mattei/Jbigl )compilers to JVM byte code and after packaged in .jar files , also i need to add the runtime library of each language, one for kawa and another for bigloo, they must be packaged in .jar files (not .zip) also; i have a draft that explain this: https://sidonie.oca.eu/Sidonie/technical-doc.html i almost sure that if i got some clojure source file that i can compile it to JVM .class files and make .jar files of them they can be exported in a .war files as a library in my Netbeans project the way it was for Kawa and Bigloo, if clojure use a runtime library (and i suppose it's yes) this library should be packaged in a.jar file and add also in the .war file
On Friday, October 13, 2017 at 10:13:24 PM UTC+2, Andy Fingerhut wrote: > > I haven't deployed an application written in Clojure to a server as a WAR > file before, so can't speak from experience, but I am sure others here > probably can. Hey, others, have you deployed a Clojure application via a > WAR file without using AOT compilation, with only Clojure source code > packaged in the WAR file? Is that something that works? > > Andy > > On Fri, Oct 13, 2017 at 11:05 AM, Damien Mattei <damien...@gmail.com > <javascript:>> wrote: > >> but i am in this situation, i wrote application in Scheme (Kawa,Bigloo) >> ,LisP that ran on an apache tomcat server, the application is deplyed in >> war files , they are precompiled ,with Kawa or Bigloo Scheme, and also use >> regular Java class compiled with Java8. >> They never ran in REPL ,all the test and debug must be done on the host >> that run tomcat web server in Java 8, here is the site : >> https://sidonie.oca.eu/ >> >> On Friday, October 13, 2017 at 7:37:08 PM UTC+2, Andy Fingerhut wrote: >>> >>> Just a note that at the top of the documentation page you mention, it >>> says: "Clojure compiles all code you load on-the-fly into JVM bytecode, >>> but sometimes it is advantageous to compile ahead-of-time (AOT)." >>> >>> I would venture an estimate that most people who use Clojure do so >>> without using AOT compilation. Many would advocate against using AOT >>> compilation, unless you are in a particular situation that requires it. >>> >>> Andy >>> >>> On Fri, Oct 13, 2017 at 10:13 AM, Damien Mattei <damien...@gmail.com> >>> wrote: >>> >>>> i did not have , i just follow the tutorial: >>>> https://clojure.org/reference/compilation >>>> i made the file but still the same problem: >>>> >>>> [mattei@moita ~]$ export CLASSPATH=.:./clojure/examples >>>> [mattei@moita ~]$ clojure >>>> Clojure 1.5.1 >>>> user=> (compile 'clojure.examples.hello) >>>> FileNotFoundException Could not locate >>>> clojure/examples/hello__init.class or clojure/examples/hello.clj on >>>> classpath: clojure.lang.RT.load (RT.java:443) >>>> user=> ^C[mattei@moita ~]$ >>>> >>>> [mattei@moita ~]$ cat clojure/examples/hello.clj >>>> (ns clojure.examples.hello >>>> (:gen-class)) >>>> >>>> (defn -main >>>> [greetee] >>>> (println (str "Hello " greetee "!"))) >>>> >>>> On Friday, October 13, 2017 at 4:48:40 PM UTC+2, James Reeves wrote: >>>>> >>>>> Maybe this is a dumb question, but do you have a file >>>>> "clojure/examples/hello.clj" on the classpath? Since that's what the >>>>> exception is complaining about. >>>>> >>>>> On 13 October 2017 at 15:09, Damien Mattei <damien...@gmail.com> >>>>> wrote: >>>>> >>>>>> hello, >>>>>> >>>>>> i'm new to clojure, just installed it on a CentOS box, >>>>>> >>>>>> and try to compile the code below from tutorial, but it does not >>>>>> work, i searched a lot before posting, no answer... i do not want to use >>>>>> leiningen at this stage,later perheaps... >>>>>> >>>>>> just want to compile and run >>>>>> >>>>>> user=> (ns clojure.examples.hello >>>>>> (:gen-class)) >>>>>> nil >>>>>> clojure.examples.hello=> >>>>>> clojure.examples.hello=> (defn -main >>>>>> [greetee] >>>>>> (println (str "Hello " greetee "!"))) >>>>>> #'clojure.examples.hello/-main >>>>>> clojure.examples.hello=> (compile 'clojure.examples.hello) >>>>>> FileNotFoundException Could not locate >>>>>> clojure/examples/hello__init.class or clojure/examples/hello.clj on >>>>>> classpath: clojure.lang.RT.load (RT.java:443) >>>>>> >>>>>> help greatly appreciated (because i'm just one step to leave Clojure >>>>>> and continue using Kawa or Bigloo i already use or dive into ABCL , but >>>>>> Clojure has a so good reputation, i cannot imagine being sticked here by >>>>>> a >>>>>> simple hello world!) >>>>>> >>>>>> damien >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "Clojure" group. >>>>>> To post to this group, send email to clo...@googlegroups.com >>>>>> Note that posts from new members are moderated - please be patient >>>>>> with your first post. >>>>>> To unsubscribe from this group, send email to >>>>>> clojure+u...@googlegroups.com >>>>>> For more options, visit this group at >>>>>> http://groups.google.com/group/clojure?hl=en >>>>>> --- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "Clojure" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to clojure+u...@googlegroups.com. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> James Reeves >>>>> booleanknot.com >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Clojure" group. >>>> To post to this group, send email to clo...@googlegroups.com >>>> Note that posts from new members are moderated - please be patient with >>>> your first post. >>>> To unsubscribe from this group, send email to >>>> clojure+u...@googlegroups.com >>>> For more options, visit this group at >>>> http://groups.google.com/group/clojure?hl=en >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Clojure" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to clojure+u...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@googlegroups.com >> <javascript:> >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+u...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+u...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.