Didn't seem to do it:
(ensure-java-class (find-java-class "uk.ac.manchester.cs.owl.owlapi.OWLClassImpl"))
Fails - trackback below.
Could it have something to do with the different classloaders? I'm using the bsh class loader.
-Alan
Inconsistent precedence graph. [Condition of type SIMPLE-ERROR]
Restarts: 0: [RETRY] Retry SLIME REPL evaluation request. 1: [ABORT] Return to SLIME's top level. 2: [ABORT] Abort thread.
Backtrace: 0: (ERROR "Inconsistent precedence graph.") 1: (MOP::TOPOLOGICAL-SORT (#<BUILT-IN-CLASS T> #<STANDARD-CLASS STANDARD-OBJECT {BB8694}> #<JAVA-CLASS {76B70A}> #<JAVA-CLASS {EAFC88}> #<JAVA-CLASS {6957A7}> #<JAVA-CLASS {F9B577}> ...) ((#<STANDARD-CLA.. 2: (MOP::STD-COMPUTE-CLASS-PRECEDENCE-LIST #<JAVA-CLASS {8ECBB9}>) 3: (#<FUNCTION (LAMBDA (MOP::ARGS MOP::NEXT-EMFUN)) {8CA21A}> (#<JAVA-CLASS {8ECBB9}>) NIL) 4: (#<FUNCTION {E67B9B}> (#<JAVA-CLASS {8ECBB9}>)) 5: (#<FUNCTION {E0F275}> #<JAVA-CLASS {8ECBB9}>) 6: (APPLY #<FUNCTION {E0F275}> (#<JAVA-CLASS {8ECBB9}>)) 7: (#<STANDARD-GENERIC-FUNCTION MOP::COMPUTE-CLASS-PRECEDENCE-LIST {3DAC04}> #<JAVA-CLASS {8ECBB9}>) 8: (MOP::STD-FINALIZE-INHERITANCE #<JAVA-CLASS {8ECBB9}>) 9: (#<STANDARD-GENERIC-FUNCTION MOP::FINALIZE-INHERITANCE {B34C53}> #<JAVA-CLASS {8ECBB9}>) 10: (#<FUNCTION {BF47E5}> #<JAVA-CLASS {8ECBB9}> :NAME #:|org.semanticweb.owlapi.model.OWLClassExpression| :DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> #<JAVA-CLASS {6957A7}> #<JAVA-CLASS {EAFC88}>) ...) 11: (APPLY #<FUNCTION {BF47E5}> #<JAVA-CLASS {8ECBB9}> (:NAME #:|org.semanticweb.owlapi.model.OWLClassExpression| :DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> #<JAVA-CLASS {6957A7}> #<JAVA-CLASS {EAFC88}>.. 12: (#<FUNCTION {41D9FF}> #<JAVA-CLASS {8ECBB9}> :NAME #:|org.semanticweb.owlapi.model.OWLClassExpression| :DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> #<JAVA-CLASS {6957A7}> #<JAVA-CLASS {EAFC88}>) ...) 13: (APPLY #<FUNCTION {41D9FF}> (#<JAVA-CLASS {8ECBB9}> :NAME #:|org.semanticweb.owlapi.model.OWLClassExpression| :DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> #<JAVA-CLASS {6957A7}> #<JAVA-CLASS {EAFC88}>.. 14: (#<STANDARD-GENERIC-FUNCTION INITIALIZE-INSTANCE {10E1A4}> #<JAVA-CLASS {8ECBB9}> :NAME #:|org.semanticweb.owlapi.model.OWLClassExpression| :DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> #<JAVA-CLASS {6.. 15: (APPLY #<STANDARD-GENERIC-FUNCTION INITIALIZE-INSTANCE {10E1A4}> #<JAVA-CLASS {8ECBB9}> (:NAME #:|org.semanticweb.owlapi.model.OWLClassExpression| :DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> #<JAVA-C.. 16: (#<FUNCTION {4F29D2}> #<STANDARD-CLASS JAVA-CLASS {D3B52}> :NAME #:|org.semanticweb.owlapi.model.OWLClassExpression| :DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> #<JAVA-CLASS {6957A7}> #<JAVA-CLASS {E.. 17: (APPLY #<FUNCTION {4F29D2}> (#<STANDARD-CLASS JAVA-CLASS {D3B52}> :NAME #:|org.semanticweb.owlapi.model.OWLClassExpression| :DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> #<JAVA-CLASS {6957A7}> #<JAVA-C.. 18: (#<STANDARD-GENERIC-FUNCTION MAKE-INSTANCE {617DFA}> #<STANDARD-CLASS JAVA-CLASS {D3B52}> :NAME #:|org.semanticweb.owlapi.model.OWLClassExpression| :DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> #<JAVA-.. 19: (APPLY #<STANDARD-GENERIC-FUNCTION MAKE-INSTANCE {617DFA}> #<STANDARD-CLASS JAVA-CLASS {D3B52}> :NAME #:|org.semanticweb.owlapi.model.OWLClassExpression| (:DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> .. 20: (SYSTEM:ENSURE-CLASS #:|org.semanticweb.owlapi.model.OWLClassExpression| :METACLASS #<STANDARD-CLASS JAVA-CLASS {D3B52}> :DIRECT-SUPERCLASSES (#<JAVA-CLASS {F9B577}> #<JAVA-CLASS {6957A7}> #<JAVA-CLAS.. 21: (ENSURE-JAVA-CLASS #<java.lang.Class interface org.semanticweb.owlapi... {4E151E}>) 22: (ENSURE-JAVA-CLASS #<java.lang.Class class uk.ac.manchester.cs.owl.ow... {4C68D4}>) 23: (ENSURE-JAVA-CLASS #<java.lang.Class class uk.ac.manchester.cs.owl.ow... {765640}>) 24: (SYSTEM::%EVAL (ENSURE-JAVA-CLASS (FIND-JAVA-CLASS "uk.ac.manchester.cs.owl.owlapi.OWLClassImpl")))