Trouble with armed bear common lisp--calling user defined classes from repl? -
I'm very new to Ornate and Java and I'm very new as well. I was working on a trivial game in Java and I thought it would be interesting to interact with the game because I was coding it through REPL. I am following practical mesmerizing and I have knowledge of basic function structure. I started using LISP as an armed bear - an implementation that runs on the Java Virtual Machine - and was able to codify some basic functions to make a GUICE, such as:
(Defnstant + jframe + "Javax.swing.JFrame") (vs frame (length width and visible) "Create + a + Jeffre +" (let (jnew (jnew (jconstructor + jframe +))) (jcall (jmethod + Jframe + "setSize" "int" "int") frame length width) (if visible (frame-visible T-frame)) frame)) Although I do not know how the implementation of the entire class from user defined class lizard is very poorly documented, and I am having difficulty starting Java specific things from within Lispi. For example, I have a compiled character group called "Characters" but when I call (jclass "Character") I get a "class not found" error Is it possible that I learned from within my class from LSSP Ho?
If you want to create an instance of Java class that you have written yourself and in a jar file Packed, use the add-to-class path:
(Add-to-classpath '("character.jar")) Then, (jnew "org.example.Character") should give you an example of your character class org.example in the namespace).
Comments
Post a Comment