Converts Java Open Source Physics exercise to Clojure
Clojure Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

This is an attempt to translate some exercises from the book Introduction to Computer Simulation Methods from Java to Clojure.

Here is what I have done so far:

I packaged up the opensourcephysics source code and submitted it to clojars. The source is on Github.

I translated the file (found in the java directory) to Clojure.

Unfortunately, I'm stuck on a java.lang.ClassNotFoundException. I can't do lein compile without this error:

Caused by: java.lang.ClassNotFoundException: org.opensourcephysics.controls.AbstractSimulation
        at$ Source)
        at$ Source)
        at Method)
        at Source)
        at clojure.lang.DynamicClassLoader.findClass(
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at clojure.lang.RT.classForName(
        at clojure.core$the_class.invoke(genclass.clj:99)
        at clojure.core$generate_class.invoke(genclass.clj:119)
        at clojure.core$gen_class.doInvoke(genclass.clj:622)
        at clojure.lang.RestFn.invoke(
        at clojure.lang.Var.invoke(
        at clojure.lang.AFn.applyToHelper(
        at clojure.lang.Var.applyTo(
        at clojure.lang.Compiler.macroexpand1(
        at clojure.lang.Compiler.analyzeSeq(
        ... 45 more

It appears that I've declared dependencies incorrectly, or packaged up the opensourcephysics code incorrectly. Any help is appreciated.