Re: Problem using Java classes from SISC

"Michael Gardner" <[email protected]> Sat, 20 Oct 2007 10:50:56 -0500
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
I tried putting it in a new package 'foo', but still no luck.

-Michael

On 10/20/07, Mike J. Bell <[email protected]> wrote:
> What about avoiding the default package?  Try putting it in my.package or
> whatever and see if it works.  (I'm remembering something weird about
> dynamically loading classes in the default package, but my memory is shaky).
>
> Mike
>
>
> On 10/20/07, Michael Gardner <[email protected]> wrote:
> >
> > 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/
> > _______________________________________________
> > Sisc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/sisc-users
> >
>
>
>
> --
> Mike J. Bell on gmail

-------------------------------------------------------------------------
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/