Coder Social home page Coder Social logo

Comments (10)

aphyr avatar aphyr commented on August 16, 2024 1

Ah, delightful! I've added a see-also link to elle.

from elle.

aphyr avatar aphyr commented on August 16, 2024

from elle.

ligurio avatar ligurio commented on August 16, 2024

As noted in the readme, every release is already published on clojars.

Missed it. Thanks, Kyle.

from elle.

ligurio avatar ligurio commented on August 16, 2024

Unfortunately Elle on Clojars is not suitable to run standalone, see:

$ curl -O -L https://clojars.org/repo/elle/elle/0.1.2/elle-0.1.2.jar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   154  100   154    0     0    158      0 --:--:-- --:--:-- --:--:--   158
100 67282  100 67282    0     0  29757      0  0:00:02  0:00:02 --:--:--  698k
$ java -jar elle-0.1.2.jar 
Error: Could not find or load main class clojure.main
Caused by: java.lang.ClassNotFoundException: clojure.main
$ 

Would it be possible to publish self-contained (I'm not familiar with Java, probably it's a static Jar file) Elle on Github Releases?
If you are agree but don't want to spend time on it I can do it myself.

from elle.

aphyr avatar aphyr commented on August 16, 2024

from elle.

ligurio avatar ligurio commented on August 16, 2024

Like you don't have Maven or Gradle or lein or SBT/etc.

Right. I want to use jar with Elle as a blackbox and communicate with it in a project that don't use Java or Clojure at all. That's why I'm asking about fat jar. Would it be possible?

from elle.

ligurio avatar ligurio commented on August 16, 2024

Should Elle's demo work for standalone jar?

sergeyb@pony:~/sources/elle$ lein deps
sergeyb@pony:~/sources/elle$ lein uberjar
Created /home/sergeyb/sources/elle/target/elle-0.1.3-SNAPSHOT.jar
Created /home/sergeyb/sources/elle/target/elle-0.1.3-SNAPSHOT-standalone.jar
sergeyb@pony:~/sources/elle$ java -jar target/elle-0.1.3-SNAPSHOT-standalone.jar 
Clojure 1.2.1
user=> (require '[elle.list-append :as a])
java.lang.NoSuchMethodError: 'clojure.lang.Keyword clojure.lang.RT.keyword(java.lang.String, java.lang.String)' (list_append.clj:1)
user=> 

from elle.

aphyr avatar aphyr commented on August 16, 2024

from elle.

ligurio avatar ligurio commented on August 16, 2024

Oh, uh, no idea---never tried that before. Elle is a library, so you'd probably want to write some sort of wrapper program that would call it and do whatever sort of I/O you needed--presumably reading files or stdin, parsing and massaging input, parsing args, invoking the checker, etc

Agree. It looks as a separate business :) I'll try to implement cli for Elle in a spare time.

from elle.

ligurio avatar ligurio commented on August 16, 2024

Made a separate tool for checking consistency based on Knossos and Elle -
https://github.com/ligurio/elle-cli

from elle.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.