Problem using Java classes from SISC

"Michael Gardner" <[email protected]> Sat, 20 Oct 2007 09:42:20 -0500
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
I'm having trouble using my Java classes from SISC. When I try to
create an instance of my empty Java class 'Test' in the interpreter, I
get:

#;> (max-stack-trace-depth 16)
0
#;> (import s2j)
#;> (define-java-class <test> |Test|)
#;> (java-new <test>)
Error: no applicable method for args () in generic procedure #0=#<procedure>
---------------------------
console:4:1: <from call to @s2j::java-new>

I think SISC must at least be finding the Test class successfully,
since define-java-class doesn't complain; also if I create a Test
instance in Java and then pass it to a Scheme function, I get a
similar error on the first method I try to invoke via
generic-java-method. Everything works if I use a built-in class such
as java.lang.Integer instead.

I'm running SISC 1.16.6 on FreeBSD 6.2, with JDK1.5. (JDK1.6 is also
installed, but SISC should be using 1.5-- is there any way I can
verify this?)

-Michael

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/