Re: Problem using Java classes from SISC
"Michael Gardner" <[email protected]> Sat, 20 Oct 2007 10:27:50 -0500
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
Yes, I get the same result after adding test.jar manually to the classpath as you suggest. -Michael On 10/20/07, Colin Coates <[email protected]> wrote: > Dear Michael, > > Please will you confirm that you have added your test.jar to the > classpath? Here is some of my live code, which adds "rhapsody.jar" to > the class path searched by SISC: > > ;; add Rhapsody Java API library to the Java class-path > (class-path-extension-append! (list > "file:C:/Rhapsody7.1/Share/JavaApi/rhapsody.jar")) > > Kind Regards, > Colin > > Michael Gardner wrote: > > 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/ > > _______________________________________________ > > Sisc-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/sisc-users > > > > > > ------------------------------------------------------------------------- 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/