ClojureCLR

Error when starting Clojure.Main.exe

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    OS X, Running Mono

Description

I received the following error when trying to start ClojureCLR through Mono.

Release 4.0 general$ mono Clojure.Main.exe

Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for Clojure.CljMain ---> System.TypeInitializationException: An exception was thrown by the type initializer for clojure.lang.RT ---> System.IO.FileNotFoundException: Could not locate clojure.core.clj.dll or clojure/core.clj on load path.
at clojure.lang.RT.load (System.String relativePath, Boolean failIfNotFound) [0x00000] in <filename unknown>:0
at clojure.lang.RT.load (System.String relativePath) [0x00000] in <filename unknown>:0
at clojure.lang.RT.DoInit () [0x00000] in <filename unknown>:0
at clojure.lang.RT..cctor () [0x00000] in <filename unknown>:0
— End of inner exception stack trace —
at Clojure.CljMain..cctor () [0x00000] in <filename unknown>:0
— End of inner exception stack trace —
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for Clojure.CljMain ---> System.TypeInitializationException: An exception was thrown by the type initializer for clojure.lang.RT ---> System.IO.FileNotFoundException: Could not locate clojure.core.clj.dll or clojure/core.clj on load path.
at clojure.lang.RT.load (System.String relativePath, Boolean failIfNotFound) [0x00000] in <filename unknown>:0
at clojure.lang.RT.load (System.String relativePath) [0x00000] in <filename unknown>:0
at clojure.lang.RT.DoInit () [0x00000] in <filename unknown>:0
at clojure.lang.RT..cctor () [0x00000] in <filename unknown>:0
— End of inner exception stack trace —
at Clojure.CljMain..cctor () [0x00000] in <filename unknown>:0
— End of inner exception stack trace —

Activity

Hide
Dan Jacka added a comment -

I hit the same error on Mono on Ubuntu. In my case creating softlinks to Clojure.dll named clojure.core.clj.dll, etc. (full list here) worked - afterwards I was able to fire up a REPL. Hope this helps.

Show
Dan Jacka added a comment - I hit the same error on Mono on Ubuntu. In my case creating softlinks to Clojure.dll named clojure.core.clj.dll, etc. (full list here) worked - afterwards I was able to fire up a REPL. Hope this helps.
Hide
David Miller added a comment -

Good for short-term workaround.
We need to figure out why assembly resolution differs on Mono. The ILMerge'd Clojure.dll contains the embedded dlls, as you've figured out. Why they aren't picked up directly, I don't know.
Need some debugging time under Mono.

Show
David Miller added a comment - Good for short-term workaround. We need to figure out why assembly resolution differs on Mono. The ILMerge'd Clojure.dll contains the embedded dlls, as you've figured out. Why they aren't picked up directly, I don't know. Need some debugging time under Mono.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: