Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 995693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:45:37+00:00 2026-05-16T06:45:37+00:00

I have a clojure project that uses the slick 2d game engine that I

  • 0

I have a clojure project that uses the slick 2d game engine that I am trying to run as an executable jar file. I created the project in both Netbeans and Eclipse and I have had no luck exporting them into an executable format. It keeps giving the error could not find the main class, followed by giving my main class. I have tried editing the manifest file changing the name in the hopes that it will find it but no luck so far.

It does run in the development environment, but not outside it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:45:38+00:00Added an answer on May 16, 2026 at 6:45 am

    It’s been a while since I posted this question and I thought that I would stick up what I’ve found since for anyone who needs this question answered.

    I now use Leiningen to manage my projects though I have started playing around with cljr which is a repl and package manager that complements it. Either of these make it much simpler to generate a runnable jar file.

    Taking Leiningen as an example set it up using the instructions on the site and then call lein new in your workspace. This will create a folder to house your projects as well as a sub-folders for your source and tests a readme file and a project.clj file.

    Edit the project.clj with the dependencies that you will be using. Dev-dependencies are dependencies which you need purely for development such as swank-clojure shown in the example below.

    (defproject myproject "0.0.1-SNAPSHOT"
      :description "My Personal Project."
      :url "http://example.com/my-project"
      :dependencies [[org.clojure/clojure "1.1.0"]
                     [org.clojure/clojure-contrib "1.1.0"]
                     [**other dependencies**]]
      :dev-dependencies [[swank-clojure "1.2.1"]]
      :main [org.myproject.core])
    

    I find swank-clojure useful as you can then type lein swank to start a swank instance which you can connect to via emacs.

    :main defines what namespace contains the -main function.

    Calling lein uberjar will create a standalone jar which will then run.

    Hopefully that helps anyone who had my problem!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Leiningen project that is compiling both Java and Clojure files. The
I have a clojure/ring project that has two distinct app/handlers running on different ports
Has anyone successfully created a NetBeans project that combines Clojure and Java source? I
I have a Clojure project that I would like to package and use in
I'm new to clojure. I have a jar file I want to play with
I have installed clojure plugins in eclipse so that I can start developing apps
everyone, I've started working yesterday on the Euler Project in Clojure and I have
I have a question about Clojure: I am trying to learn the language by
I'm building a Clojure Noir web application to run as a WAR file in
The Clojure/Compojure people have a drop in repl for Google App Engine, do Python

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.