<< Back to previous view

[CLJCLR-48] Error when starting Clojure.Main.exe Created: 26/Oct/14  Updated: 19/Nov/14

Status: Open
Project: ClojureCLR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Kerry Todyruik Assignee: David Miller
Resolution: Unresolved Votes: 0
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 —



 Comments   
Comment by Dan Jacka [ 19/Nov/14 2:46 AM ]

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.

Comment by David Miller [ 19/Nov/14 3:13 PM ]

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.





Generated at Tue Nov 25 17:16:36 CST 2014 using JIRA 4.4#649-r158309.