Re: Problem using Java classes from SISC

"Michael Gardner" <[email protected]> Sat, 20 Oct 2007 14:19:51 -0500
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
Wow. Too much time in C++ land for me, apparently. That was it.

Thanks, and sorry for wasting everybody's time.

-Michael

On 10/20/07, Scott G. Miller <[email protected]> wrote:
> On 10/20/07, Michael Gardner <[email protected]> wrote:
> > Test.java consists of "class Test {}". I have also tried explicitly
> > giving it an empty constructor, with no change.
>
>
> If the class isn't public, it isn't visible to reflection.  Thats
> probably the problem.
>
> Scott
>
> >
> > -Michael
> >
> > On 10/20/07, Scott G. Miller <[email protected]> wrote:
> > > On 10/20/07, Michael Gardner <[email protected]> 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>
> > >
> > > Hi Michael,
> > >
> > >    What are the contents of Test.java?  Does it have a default constructor?
> > >
> > > Scott
> > >
> >
>

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