I think you need to restart the repl before any new dependencies will
be added to the classpath, and then you need to import them in the
repl if you haven't already done so in the file you loaded into the
repl. There's an arrow on the toolbar on the side of the repl window
that resets it.
>
> Lastly, I'm sure this is also something very noob, but when i try and
> run my project it asks me to locate the main class, which doesn't
> exist so I have to cancel. I have only run things by right clicking on
> the file and saying to evaluate in the REPL, how should I be compiling
> and running enclojure projects?
>
I don't think the "Run Main Project" stuff works with enclojure (if it
does you must need to tweak a few things). I generally do most of my
development with a repl running (so lots of alt-L, alt-shift-N, call
the function, rinse wash repeat), then when I want to deploy I add the
appropriate maven directives to the pom to create a runnable jar file
(using the jar and dependency plugins), which means I can do java -jar
<jarfile> and it runs. If that is the kind of thing you're looking for
give me a yell and I'll send some examples.
Very much a clojure noob though so not sure if that is a typical workflow.
- Steve
>
> I don't think the "Run Main Project" stuff works with enclojure (if it
> does you must need to tweak a few things). I generally do most of my
> development with a repl running (so lots of alt-L, alt-shift-N, call
> the function, rinse wash repeat), then when I want to deploy I add the
> appropriate maven directives to the pom to create a runnable jar file
> (using the jar and dependency plugins), which means I can do java -jar
> <jarfile> and it runs. If that is the kind of thing you're looking for
> give me a yell and I'll send some examples.
>
> Very much a clojure noob though so not sure if that is a typical workflow.
>
> - Steve
>
Hi Steve,
I was also trying to get things going in a similar way (i.e. develop with
netbeans/enclojure/repl and then generate a stand alone jar) - after the build I
could not run the executale jar (could not find main class). I would be happy if
you can provide an example that worked for you.
Thanks,
Douwe