This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-29
Channels
- # announcements (3)
- # aws (12)
- # babashka (11)
- # beginners (46)
- # calva (10)
- # cider (6)
- # clara (3)
- # cljdoc (6)
- # cljs-dev (13)
- # cljsrn (2)
- # clojure (49)
- # clojure-europe (2)
- # clojure-gamedev (1)
- # clojure-germany (22)
- # clojure-uk (2)
- # clojurescript (28)
- # clojureverse-ops (8)
- # conjure (6)
- # cursive (2)
- # emacs (1)
- # figwheel-main (9)
- # heroku (12)
- # jobs-discuss (1)
- # malli (10)
- # off-topic (1)
- # practicalli (8)
- # re-frame (25)
- # reagent (6)
- # shadow-cljs (24)
- # testing (10)
- # vscode (4)
Hello Clara Gurus, I'm a newbie and just getting started with Clara Rules and planning to use it with Java. I'm getting an error when trying to run the code. `ExceptionInInitializerError: Syntax error compiling at (example/shopping.clj:2:3). clara.rules.accumulators` I'm attaching the project source for your reference. Could you please help. Please install Maven. Go to your project root directory and to compile the project execute `mvn -q compile` To run the code `mvn -q exec:java -Dexec.mainClass=example.ClaraExampleMain`
you have a syntax error in the import clause, there are ))) on the second row. should be )) (ns example.shopping (:import (example Customer Promotion Order)) (:require [clara.rules.accumulators :as acc] [clara.rules :refer :all])) like so
Thanks a Lot Linus for your help and support. Highly appreciate your time and effort for spotting this out. It works fine now.